Skip to content

Commit 9f0cf6a

Browse files
committed
Make availability_zone in aggregate_create optional
Aggregates do not require an availability zone any more, but in order to keep the current API, allow for availability zone to be set to None (the new default value) Fixes bug 1123468 Change-Id: I216c4fc808a91b0a5f602ee02ae1bca46adb73f4
1 parent 0db2ff2 commit 9f0cf6a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

novaclient/v1_1/shell.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,9 @@ def do_aggregate_list(cs, args):
22322232
@utils.arg('name', metavar='<name>', help='Name of aggregate.')
22332233
@utils.arg('availability_zone',
22342234
metavar='<availability-zone>',
2235-
help='The availability zone of the aggregate.')
2235+
default=None,
2236+
nargs='?',
2237+
help='The availability zone of the aggregate (optional).')
22362238
def do_aggregate_create(cs, args):
22372239
"""Create a new aggregate with the specified details."""
22382240
aggregate = cs.aggregates.create(args.name, args.availability_zone)

0 commit comments

Comments
 (0)