X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fv1%2Fns.py;h=e6b747fd78a75ac35f65a6a3a07189a85ac329fa;hb=f6a4f77b98e5f05b74938b44bcbb2ed148e4941a;hp=8ea18545b1f61b10f2c8b546009eaa7eba8d9484;hpb=6380fc0aa54cc7c3700a5a1f655e619471684611;p=osm%2Fosmclient.git diff --git a/osmclient/v1/ns.py b/osmclient/v1/ns.py index 8ea1854..e6b747f 100644 --- a/osmclient/v1/ns.py +++ b/osmclient/v1/ns.py @@ -113,14 +113,16 @@ class Ns(object): nsr['ssh-authorized-key'] = ssh_keys_format + ns_config = {} + if config: - ns_config = yaml.load(config) + ns_config = yaml.safe_load(config) if ns_config and 'vim-network-name' in ns_config: for network in ns_config['vim-network-name']: # now find this network vld_name = network['name'] - vim_vld_name = network['vim-network-name'] + # vim_vld_name = network['vim-network-name'] for index, vld in enumerate(nsr['nsd']['vld']): if vld['name'] == vld_name: