mirror of https://github.com/apache/cloudstack.git
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:
parent
48c8e64ae9
commit
359967d9f0
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Reference in New Issue