diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index 71dcc73120..da26e9187c 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -1813,7 +1813,7 @@ class ImportImage(command.ShowOne): method=parsed_args.import_method, uri=parsed_args.uri, remote_region=parsed_args.remote_region, - remote_image=parsed_args.remote_image, + remote_image_id=parsed_args.remote_image, remote_service_interface=parsed_args.remote_service_interface, stores=parsed_args.stores, all_stores=parsed_args.all_stores, diff --git a/openstackclient/tests/unit/image/v2/test_image.py b/openstackclient/tests/unit/image/v2/test_image.py index 019b4d9d37..40d0bf30d1 100644 --- a/openstackclient/tests/unit/image/v2/test_image.py +++ b/openstackclient/tests/unit/image/v2/test_image.py @@ -1861,7 +1861,7 @@ class TestImageImport(TestImage): method='glance-direct', uri=None, remote_region=None, - remote_image=None, + remote_image_id=None, remote_service_interface=None, stores=None, all_stores=None, @@ -1889,7 +1889,7 @@ class TestImageImport(TestImage): method='web-download', uri='https://example.com/', remote_region=None, - remote_image=None, + remote_image_id=None, remote_service_interface=None, stores=None, all_stores=None, @@ -1990,7 +1990,7 @@ class TestImageImport(TestImage): method='copy-image', uri=None, remote_region=None, - remote_image=None, + remote_image_id=None, remote_service_interface=None, stores=['fast'], all_stores=None, @@ -2021,7 +2021,7 @@ class TestImageImport(TestImage): method='glance-download', uri=None, remote_region='eu/dublin', - remote_image='remote-image-id', + remote_image_id='remote-image-id', remote_service_interface='private', stores=None, all_stores=None, diff --git a/setup.cfg b/setup.cfg index aee5e99b83..8c68259a73 100644 --- a/setup.cfg +++ b/setup.cfg @@ -387,6 +387,7 @@ openstack.image.v2 = image_stage = openstackclient.image.v2.image:StageImage image_task_show = openstackclient.image.v2.task:ShowTask image_task_list = openstackclient.image.v2.task:ListTask + image_import = openstackclient.image.v2.image:ImportImage image_metadef_namespace_create = openstackclient.image.v2.metadef_namespaces:CreateMetadefNameSpace image_metadef_namespace_delete = openstackclient.image.v2.metadef_namespaces:DeleteMetadefNameSpace