From 4a967406819cf054ee7b0d9f351f20a68a37cca0 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Fri, 23 Aug 2013 16:41:38 +0530 Subject: [PATCH] CLOUDSTACK-4473: allow_egress referenced before assignment When deploying with networkids allow_egress gets no default value. This is a regression caused by fix for CLOUDSTACK-4418 Signed-off-by: Prasanna Santhanam (cherry picked from commit 239ba9447109412cf48cfefc547d6b5fef83a4a9) --- tools/marvin/marvin/integration/lib/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/marvin/marvin/integration/lib/base.py b/tools/marvin/marvin/integration/lib/base.py index 91cfebd8dba..3016ee4ca32 100755 --- a/tools/marvin/marvin/integration/lib/base.py +++ b/tools/marvin/marvin/integration/lib/base.py @@ -344,8 +344,10 @@ class VirtualMachine: if networkids: cmd.networkids = networkids + allow_egress = False elif "networkids" in services: cmd.networkids = services["networkids"] + allow_egress = False else: # When no networkids are passed, network # is created using the "defaultOfferingWithSourceNAT"