mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 11:04:00 +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,7 +134,8 @@ class TestVMPasswordEnabled(cloudstackTestCase):
|
|||||||
|
|
||||||
networkid = cls.virtual_machine.nic[0].networkid
|
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,
|
EgressFireWallRule.create(cls.api_client,
|
||||||
networkid=networkid,
|
networkid=networkid,
|
||||||
protocol=cls.services["egress"]["protocol"],
|
protocol=cls.services["egress"]["protocol"],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user