Merge "Fix share network create command with the AZ option"

This commit is contained in:
Zuul 2023-03-10 13:13:14 +00:00 committed by Gerrit Code Review
commit 5abe263463
2 changed files with 5 additions and 3 deletions

View File

@ -295,9 +295,7 @@ class CreateShareNetwork(command.ShowOne):
"Availability zone can be specified only with manila API "
"version >= 2.51")
elif parsed_args.availability_zone:
availability_zone = oscutils.find_resource(
share_client.availability_zones,
parsed_args.availability_zone).name
availability_zone = parsed_args.availability_zone
share_network = share_client.share_networks.create(
name=parsed_args.name,

View File

@ -0,0 +1,4 @@
fixes:
- |
Fixed the use of the "--availability-zone" option with the
"openstack share network create" command.