From 8a5b1e60a4fc75ad57b9b127d1c6f13c202415c4 Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Sat, 11 Apr 2015 15:35:51 +0530 Subject: [PATCH] CLOUDSTACK-8375: VCenter port group verification - return as PASS if no physical networks in zone Signed-off-by: SrikanteswaraRao Talluri --- tools/marvin/marvin/lib/common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/marvin/marvin/lib/common.py b/tools/marvin/marvin/lib/common.py index d1dd856beae..ca9d9e81470 100644 --- a/tools/marvin/marvin/lib/common.py +++ b/tools/marvin/marvin/lib/common.py @@ -1688,8 +1688,11 @@ def verifyVCenterPortGroups( api_client, zoneid=zoneid ) - assert validateList(physicalNetworks)[0] == PASS,\ - "listPhysicalNetworks returned invalid object in response." + + # If there are no physical networks in zone, return as PASS + # as there are no validations to make + if validateList(physicalNetworks)[0] != PASS: + return [PASS, None] for physicalNetwork in physicalNetworks: trafficTypes = TrafficType.list(