mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
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:
parent
5404bf6063
commit
4bdaffb66a
@ -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…
x
Reference in New Issue
Block a user