projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added --filter option to command vim-show
[osm/osmclient.git]
/
osmclient
/
common
/
utils.py
diff --git
a/osmclient/common/utils.py
b/osmclient/common/utils.py
index
937e121
..
ec0e0b0
100644
(file)
--- a/
osmclient/common/utils.py
+++ b/
osmclient/common/utils.py
@@
-66,12
+66,12
@@
def get_key_val_from_pkg(descriptor_file):
if yamlfile is None:
return None
if yamlfile is None:
return None
- dict = yaml.load(tar.extractfile(yamlfile))
+ dict = yaml.
safe_
load(tar.extractfile(yamlfile))
result = {}
for k1, v1 in list(dict.items()):
if not k1.endswith('-catalog'):
continue
result = {}
for k1, v1 in list(dict.items()):
if not k1.endswith('-catalog'):
continue
- for k2, v2 in
list(v1.items()
):
+ for k2, v2 in
v1.items(
):
if not k2.endswith('nsd') and not k2.endswith('vnfd'):
continue
if not k2.endswith('nsd') and not k2.endswith('vnfd'):
continue