Skip to content

Commit

Permalink
Fix typo while accessing portbindings in vnc_cfg_types.py
Browse files Browse the repository at this point in the history
Rahul reported the issue and fix

Change-Id: I5cbd3ba5dd131840e159d2d6716d33141e8ac90f
Related-bug: #1537692
  • Loading branch information
bailkeri committed Jan 27, 2016
1 parent 02c5cfa commit 0022e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/api-server/vnc_cfg_types.py
Expand Up @@ -461,7 +461,7 @@ def pre_dbe_create(cls, tenant_name, obj_dict, db_conn):
kvps = bindings['key_value_pair']
kvp_dict = cls._kvp_to_dict(kvps)

if kvp_dict.get('vnic_type') == cls.portbinding('VNIC_TYPE_DIRECT'):
if kvp_dict.get('vnic_type') == cls.portbindings['VNIC_TYPE_DIRECT']:
if not 'provider_properties' in vn_dict:
msg = 'No provider details in direct port'
return (False, (400, msg))
Expand Down

0 comments on commit 0022e08

Please sign in to comment.