mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8375: VCenter port group verification - return as PASS if no physical networks in zone
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
parent
4d05c3b966
commit
8a5b1e60a4
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue