Skip to content

Commit 0bfb53d

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "network: Prefer --agent-id to --long"
2 parents 7d39ed6 + e814bd2 commit 0bfb53d

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

openstackclient/network/v2/network.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,15 @@ def take_action(
614614
'Availability Zones',
615615
'Tags',
616616
)
617-
elif parsed_args.agent_id:
617+
else:
618+
columns = ('id', 'name', 'subnet_ids')
619+
column_headers = (
620+
'ID',
621+
'Name',
622+
'Subnets',
623+
)
624+
625+
if parsed_args.agent_id:
618626
columns = ('id', 'name', 'subnet_ids')
619627
column_headers = (
620628
'ID',
@@ -635,13 +643,6 @@ def take_action(
635643
for s in client.dhcp_agent_hosting_networks(dhcp_agent)
636644
),
637645
)
638-
else:
639-
columns = ('id', 'name', 'subnet_ids')
640-
column_headers = (
641-
'ID',
642-
'Name',
643-
'Subnets',
644-
)
645646

646647
args = {}
647648

0 commit comments

Comments
 (0)