.get("operate-vnf-op-config", {})
.get("day1-2")
)
- for day_1_2 in day_1_2s:
- exec_env_list = day_1_2.get("execution-environment-list", [])
- for exec_env in exec_env_list:
- if "juju" in exec_env and "charm" in exec_env["juju"]:
- charms_list.append(exec_env["juju"]["charm"])
+ if day_1_2s is not None:
+ for day_1_2 in day_1_2s:
+ exec_env_list = day_1_2.get("execution-environment-list", [])
+ for exec_env in exec_env_list:
+ if "juju" in exec_env and "charm" in exec_env["juju"]:
+ charms_list.append(exec_env["juju"]["charm"])
return charms_list
def _charms_search_on_nsd_sol006_dict(self, sol006_dict):