Skip to content

Commit 32762bc

Browse files
committed
compute: Fix key used for NIC fixed IP field
Change-Id: If099ac0e2663228681e87e2f4821b746c8113ffc Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Closes-bug: #2106221
1 parent 79de137 commit 32762bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openstackclient/compute/v2/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,9 +1947,9 @@ def _match_image(image_api, wanted_properties):
19471947
network['port'] = nic['port-id']
19481948

19491949
if nic['v4-fixed-ip']:
1950-
network['fixed'] = nic['v4-fixed-ip']
1950+
network['fixed_ip'] = nic['v4-fixed-ip']
19511951
elif nic['v6-fixed-ip']:
1952-
network['fixed'] = nic['v6-fixed-ip']
1952+
network['fixed_ip'] = nic['v6-fixed-ip']
19531953

19541954
if nic.get('tag'): # tags are optional
19551955
network['tag'] = nic['tag']

openstackclient/tests/unit/compute/v2/test_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ def find_port(name_or_id, ignore_missing):
17051705
},
17061706
{
17071707
'uuid': network_net2.id,
1708-
'fixed': '10.0.0.2',
1708+
'fixed_ip': '10.0.0.2',
17091709
},
17101710
{
17111711
'port': port_port1.id,

0 commit comments

Comments
 (0)