Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Fix typo that can prevent undercloud installation.
Browse files Browse the repository at this point in the history
The interface to sdk.network.segments use network_id, not network[1].

Closes-Bug: #1748199

[1] https://github.com/openstack/python-openstacksdk/blob/master/openstack/network/v2/segment.py#L30..L34

Change-Id: Ibda590103ed8b02a1ce05e285a3d9d9ea2e2ff7f
  • Loading branch information
sathlan committed Feb 8, 2018
1 parent 46a5df2 commit 8dc0d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instack_undercloud/undercloud.py
Expand Up @@ -2035,7 +2035,7 @@ def _ensure_neutron_network(sdk):
LOG.info("Network created %s", network)
# (hjensas) Delete the default segment, we create a new segment
# per subnet later.
segments = list(sdk.network.segments(network=network.id))
segments = list(sdk.network.segments(network_id=network.id))
sdk.network.delete_segment(segments[0].id)
LOG.info("Default segment on network %s deleted.", network.name)
else:
Expand Down

0 comments on commit 8dc0d28

Please sign in to comment.