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>
(cherry picked from commit 8872af90d3d1014bf3fdfeb5f78652d5184f42cc)
This commit is contained in:
SrikanteswaraRao Talluri 2013-08-10 17:34:00 +05:30 committed by Prasanna Santhanam
parent 5404bf6063
commit 4bdaffb66a

View File

@ -134,7 +134,8 @@ class TestVMPasswordEnabled(cloudstackTestCase):
networkid = cls.virtual_machine.nic[0].networkid
# create egress rule to allow wget of my butt-set-guest-password script
# 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"],