Skip to content

Commit

Permalink
Merge "Convert fq-name-to-uuid in case of 'uuid' key specified but No…
Browse files Browse the repository at this point in the history
…ne." into R3.2
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Oct 31, 2016
2 parents 048b4cd + 68c8d10 commit e96dfb2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/config/api-server/vnc_cfg_types.py
Original file line number Diff line number Diff line change
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 e96dfb2

Please sign in to comment.