CLOUDSTACK-4230: Fix the script to not to add egress rule if zone network type is not advanced

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
SrikanteswaraRao Talluri 2013-08-10 17:34:00 +05:30 committed by Prasanna Santhanam
parent 48c8e64ae9
commit 359967d9f0
1 changed files with 3 additions and 2 deletions

View File

@ -134,8 +134,9 @@ class TestVMPasswordEnabled(cloudstackTestCase):
networkid = cls.virtual_machine.nic[0].networkid
# create egress rule to allow wget of my butt-set-guest-password script
EgressFireWallRule.create(cls.api_client,
# create egress rule to allow wget of my cloud-set-guest-password script
if zone.networktype.lower == 'advanced':
EgressFireWallRule.create(cls.api_client,
networkid=networkid,
protocol=cls.services["egress"]["protocol"],
startport=cls.services["egress"]["startport"],