mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Test if config specifies a zone before using it
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
This commit is contained in:
parent
9f4f9211d0
commit
bb1c70b3d8
@ -111,7 +111,7 @@ class MarvinInit:
|
|||||||
if not self.__hypervisorType:
|
if not self.__hypervisorType:
|
||||||
self.__hypervisorType = XEN_SERVER
|
self.__hypervisorType = XEN_SERVER
|
||||||
if not self.__zoneForTests:
|
if not self.__zoneForTests:
|
||||||
if self.__parsedConfig:
|
if self.__parsedConfig and self.__parsedConfig.zones is not None:
|
||||||
for zone in self.__parsedConfig.zones:
|
for zone in self.__parsedConfig.zones:
|
||||||
self.__zoneForTests = zone.name
|
self.__zoneForTests = zone.name
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user