mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-24 22:06:59 +01:00
Fixed crash when retrieving pool info from DR metadata.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
545d85d433
commit
eb58973497
@ -97,10 +97,11 @@ namespace XenAdmin.Actions.DR
|
||||
if (poolValues.Count > 0)
|
||||
{
|
||||
var pool = poolValues.First();
|
||||
var poolName = string.IsNullOrEmpty(pool.name_label) && pool.master != null
|
||||
? Host.get_name_label(MetadataSession, pool.master.opaque_ref)
|
||||
: pool.name_label;
|
||||
_poolMetadata.Pool.name_label = poolName;
|
||||
_poolMetadata.Pool = pool;
|
||||
|
||||
if (string.IsNullOrEmpty(pool.name_label) && pool.master != null)
|
||||
_poolMetadata.Pool.name_label = Host.get_name_label(MetadataSession, pool.master.opaque_ref);
|
||||
|
||||
log.DebugFormat("Found metadata of pool '{0}' (UUID={1})", _poolMetadata.Pool.Name(),
|
||||
_poolMetadata.Pool.uuid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user