projects
/
osm
/
LCM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update version of PyYAML
[osm/LCM.git]
/
osm_lcm
/
data_utils
/
wim.py
diff --git
a/osm_lcm/data_utils/wim.py
b/osm_lcm/data_utils/wim.py
index
c8ce0bf
..
ce2c26c
100644
(file)
--- a/
osm_lcm/data_utils/wim.py
+++ b/
osm_lcm/data_utils/wim.py
@@
-80,6
+80,11
@@
def select_feasible_wim_account(db_nsr, db_vnfrs, target_vld, vld_params, logger
candidate_wims = get_candidate_wims(vims_to_connect)
logger.info("Candidate WIMs: {:s}".format(str(candidate_wims)))
candidate_wims = get_candidate_wims(vims_to_connect)
logger.info("Candidate WIMs: {:s}".format(str(candidate_wims)))
+ # check if there are no WIM candidates
+ if len(candidate_wims) == 0:
+ logger.info("No WIM accounts found")
+ return None, None
+
# check if a desired wim_account_id is specified in vld_params
wim_account_id = vld_params.get("wimAccountId")
if wim_account_id:
# check if a desired wim_account_id is specified in vld_params
wim_account_id = vld_params.get("wimAccountId")
if wim_account_id: