Correcting typo in deployDataCenter.py

isFreeZone is actually a test for whether the zone is a pure advanced
zone or an advanced zone with security groups. Renaming the var and
fixing the typo introduced by a65d21.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-06-21 21:20:06 +05:30
parent 1c50f1c756
commit 064b570c82
1 changed files with 3 additions and 3 deletions

View File

@ -380,9 +380,9 @@ specify a valid config file" % cfgFile)
self.createVlanIpRanges(zone.networktype, zone.ipranges,
zoneId, forvirtualnetwork=True)
isFreeZone = (zone.networktype == "Advanced"
and zone.securitygroupenabled != "true")
if ifFreeZone:
isPureAdvancedZone = (zone.networktype == "Advanced"
and zone.securitygroupenabled != "true")
if isPureAdvancedZone:
self.createpods(zone.pods, zoneId)
self.createVlanIpRanges(zone.networktype, zone.ipranges,
zoneId)