Merge "Fixed positional order of arguments"
This commit is contained in:
@@ -312,10 +312,10 @@ def do_backup_show(cs, args):
|
|||||||
_print_instance(backup)
|
_print_instance(backup)
|
||||||
|
|
||||||
|
|
||||||
|
@utils.arg('instance', metavar='<instance>', help='ID of the instance.')
|
||||||
@utils.arg('--limit', metavar='<limit>',
|
@utils.arg('--limit', metavar='<limit>',
|
||||||
default=None,
|
default=None,
|
||||||
help='Return up to N number of the most recent backups.')
|
help='Return up to N number of the most recent backups.')
|
||||||
@utils.arg('instance', metavar='<instance>', help='ID of the instance.')
|
|
||||||
@utils.service_type('database')
|
@utils.service_type('database')
|
||||||
def do_backup_list_instance(cs, args):
|
def do_backup_list_instance(cs, args):
|
||||||
"""Lists available backups for an instance."""
|
"""Lists available backups for an instance."""
|
||||||
@@ -352,8 +352,8 @@ def do_backup_delete(cs, args):
|
|||||||
cs.backups.delete(args.backup)
|
cs.backups.delete(args.backup)
|
||||||
|
|
||||||
|
|
||||||
@utils.arg('name', metavar='<name>', help='Name of the backup.')
|
|
||||||
@utils.arg('instance', metavar='<instance>', help='ID of the instance.')
|
@utils.arg('instance', metavar='<instance>', help='ID of the instance.')
|
||||||
|
@utils.arg('name', metavar='<name>', help='Name of the backup.')
|
||||||
@utils.arg('--description', metavar='<description>',
|
@utils.arg('--description', metavar='<description>',
|
||||||
default=None,
|
default=None,
|
||||||
help='An optional description for the backup.')
|
help='An optional description for the backup.')
|
||||||
@@ -658,14 +658,14 @@ def do_datastore_version_show(cs, args):
|
|||||||
|
|
||||||
# configuration group related functions
|
# configuration group related functions
|
||||||
|
|
||||||
@utils.arg('configuration',
|
|
||||||
metavar='<configuration>',
|
|
||||||
type=str,
|
|
||||||
help='ID of the configuration group to attach to the instance.')
|
|
||||||
@utils.arg('instance',
|
@utils.arg('instance',
|
||||||
metavar='<instance>',
|
metavar='<instance>',
|
||||||
type=str,
|
type=str,
|
||||||
help='ID of the instance.')
|
help='ID of the instance.')
|
||||||
|
@utils.arg('configuration',
|
||||||
|
metavar='<configuration>',
|
||||||
|
type=str,
|
||||||
|
help='ID of the configuration group to attach to the instance.')
|
||||||
@utils.service_type('database')
|
@utils.service_type('database')
|
||||||
def do_configuration_attach(cs, args):
|
def do_configuration_attach(cs, args):
|
||||||
"""Attaches a configuration group to an instance."""
|
"""Attaches a configuration group to an instance."""
|
||||||
|
Reference in New Issue
Block a user