QuickCloud: default to enabled if not specified in datacenter config
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/18def029 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/18def029 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/18def029 Branch: refs/heads/internallb Commit: 18def0291e0b403524fbada8f6a503102bec94c5 Parents: dbf3f90 Author: Chiradeep Vittal <[email protected]> Authored: Tue Apr 9 14:45:12 2013 -0700 Committer: Alena Prokharchyk <[email protected]> Committed: Wed Apr 10 15:43:36 2013 -0700 ---------------------------------------------------------------------- tools/marvin/marvin/deployDataCenter.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/18def029/tools/marvin/marvin/deployDataCenter.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/deployDataCenter.py b/tools/marvin/marvin/deployDataCenter.py index d365395..2e270a7 100644 --- a/tools/marvin/marvin/deployDataCenter.py +++ b/tools/marvin/marvin/deployDataCenter.py @@ -329,7 +329,7 @@ class deployDataCenters(): self.createSecondaryStorages(zone.secondaryStorages, zoneId) enabled = getattr(zone, 'enabled', 'True') - if enabled == 'True' or enabled == 'None': + if enabled == 'True' or enabled is None: self.enableZone(zoneId, "Enabled") details = getattr(zone, 'details') if details is not None:
