Skip to content

Commit 34a08e2

Browse files
authored
Merge pull request #889 from QualiSystems/noam_162373_validate_dvs
Allowing dvswitch no be empty.
2 parents 5952703 + 0e6f333 commit 34a08e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

package/cloudshell/cp/vcenter/common/vcenter/model_auto_discovery.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ def _validate_datacenter(self, si, all_item_in_vc, auto_att, attributes):
116116
def _validate_default_dvswitch(self, si, all_items_in_vc, auto_att, dc_name, attributes, key):
117117

118118
dvs_path = attributes[key]
119+
120+
# optional pararm
121+
if(not attributes[key]):
122+
return
123+
119124
path = "{}/{}".format(dc_name, dvs_path)
120125
dv = self.pv_service.find_dvs_by_path(si, path)
121126

0 commit comments

Comments
 (0)