Skip to content

Commit

Permalink
Convert fq-name-to-uuid in case of 'uuid' key specified but None.
Browse files Browse the repository at this point in the history
Change-Id: Id61624c0a8617d5e3522dc38cf37650d5c046b99
Closes-Bug: 1635728
(cherry picked from commit db27cd0)
  • Loading branch information
Hampapur Ajay committed Oct 24, 2016
1 parent 940a0cf commit 68c8d10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/config/api-server/vnc_cfg_types.py
Expand Up @@ -974,9 +974,8 @@ def _check_ipam_network_subnets(cls, obj_dict, db_conn, vn_uuid,
ipam_subnets_list = []
for ipam in ipam_refs:
ipam_fq_name = ipam['to']
if 'uuid' in ipam:
ipam_uuid = ipam['uuid']
else:
ipam_uuid = ipam.get('uuid')
if not ipam_uuid:
ipam_uuid = db_conn.fq_name_to_uuid('network_ipam',
ipam_fq_name)

Expand Down

0 comments on commit 68c8d10

Please sign in to comment.