Merge "openstack image create : --file and --volume exclude each other"
This commit is contained in:
commit
c6059bed4a
@ -128,12 +128,13 @@ class CreateImage(command.ShowOne):
|
|||||||
metavar="<image-url>",
|
metavar="<image-url>",
|
||||||
help=_("Copy image from the data store (similar to --location)"),
|
help=_("Copy image from the data store (similar to --location)"),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
source_group = parser.add_mutually_exclusive_group()
|
||||||
|
source_group.add_argument(
|
||||||
"--file",
|
"--file",
|
||||||
metavar="<file>",
|
metavar="<file>",
|
||||||
help=_("Upload image from local file"),
|
help=_("Upload image from local file"),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
source_group.add_argument(
|
||||||
"--volume",
|
"--volume",
|
||||||
metavar="<volume>",
|
metavar="<volume>",
|
||||||
help=_("Create image from a volume"),
|
help=_("Create image from a volume"),
|
||||||
|
@ -164,12 +164,13 @@ class CreateImage(command.ShowOne):
|
|||||||
type=int,
|
type=int,
|
||||||
help=_("Minimum RAM size needed to boot image, in megabytes"),
|
help=_("Minimum RAM size needed to boot image, in megabytes"),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
source_group = parser.add_mutually_exclusive_group()
|
||||||
|
source_group.add_argument(
|
||||||
"--file",
|
"--file",
|
||||||
metavar="<file>",
|
metavar="<file>",
|
||||||
help=_("Upload image from local file"),
|
help=_("Upload image from local file"),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
source_group.add_argument(
|
||||||
"--volume",
|
"--volume",
|
||||||
metavar="<volume>",
|
metavar="<volume>",
|
||||||
help=_("Create image from a volume"),
|
help=_("Create image from a volume"),
|
||||||
|
Loading…
Reference in New Issue
Block a user