projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add device role tagging functionality to openstack connector. All interfaces are...
[osm/RO.git]
/
osm_ro
/
vimconn_openvim.py
diff --git
a/osm_ro/vimconn_openvim.py
b/osm_ro/vimconn_openvim.py
index
e86b54d
..
e722dc8
100644
(file)
--- a/
osm_ro/vimconn_openvim.py
+++ b/
osm_ro/vimconn_openvim.py
@@
-596,6
+596,9
@@
class vimconnector(vimconn.vimconnector):
'''Returns the flavor identifier'''
try:
new_flavor_dict = flavor_data.copy()
'''Returns the flavor identifier'''
try:
new_flavor_dict = flavor_data.copy()
+ for device in new_flavor_dict.get('extended', {}).get('devices', ()):
+ if 'image name' in device:
+ del device['image name']
new_flavor_dict["name"] = flavor_data["name"][:64]
self._get_my_tenant()
payload_req = json.dumps({'flavor': new_flavor_dict})
new_flavor_dict["name"] = flavor_data["name"][:64]
self._get_my_tenant()
payload_req = json.dumps({'flavor': new_flavor_dict})