diff --git a/glanceclient/tests/unit/v2/test_shell_v2.py b/glanceclient/tests/unit/v2/test_shell_v2.py index b2a6415a..0926a558 100644 --- a/glanceclient/tests/unit/v2/test_shell_v2.py +++ b/glanceclient/tests/unit/v2/test_shell_v2.py @@ -2279,7 +2279,9 @@ class ShellV2Test(testtools.TestCase): test_shell.do_image_import(self.gc, args) mock_import.assert_called_once_with( 'IMG-02', 'glance-direct', None, stores=None, - all_stores=None, allow_failure=True, backend=None) + all_stores=None, allow_failure=True, + remote_region=None, remote_image_id=None, + remote_service_interface=None, backend=None) mocked_utils_print_image.assert_not_called() @mock.patch('glanceclient.common.utils.print_image') diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py index 3b5b2489..a78902ad 100644 --- a/glanceclient/v2/shell.py +++ b/glanceclient/v2/shell.py @@ -801,10 +801,14 @@ def do_image_import(gc, args): if getattr(args, 'from_create', False): # this command is being called "internally" so we can skip # validation -- just do the import and get out of here - gc.images.image_import(args.id, args.import_method, args.uri, - backend=backend, - stores=stores, all_stores=all_stores, - allow_failure=allow_failure) + gc.images.image_import( + args.id, args.import_method, args.uri, + remote_region=remote_region, + remote_image_id=remote_image_id, + remote_service_interface=remote_service_interface, + backend=backend, + stores=stores, all_stores=all_stores, + allow_failure=allow_failure) return # do input validation