Skip to content

Commit aa0405f

Browse files
stephenfinmmalchuk
authored andcommitted
compute: Fix key used for NIC fixed IP field
Change-Id: If099ac0e2663228681e87e2f4821b746c8113ffc Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Closes-bug: #2106221 (cherry picked from commit 32762bc)
1 parent 359ab86 commit aa0405f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

openstackclient/compute/v2/server.py

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

19871987
if nic['v4-fixed-ip']:
1988-
network['fixed'] = nic['v4-fixed-ip']
1988+
network['fixed_ip'] = nic['v4-fixed-ip']
19891989
elif nic['v6-fixed-ip']:
1990-
network['fixed'] = nic['v6-fixed-ip']
1990+
network['fixed_ip'] = nic['v6-fixed-ip']
19911991

19921992
if nic.get('tag'): # tags are optional
19931993
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
@@ -1712,7 +1712,7 @@ def find_port(name_or_id, ignore_missing):
17121712
},
17131713
{
17141714
'uuid': network_net2.id,
1715-
'fixed': '10.0.0.2',
1715+
'fixed_ip': '10.0.0.2',
17161716
},
17171717
{
17181718
'port': port_port1.id,

0 commit comments

Comments
 (0)