Merge "Revert "Don't look up project by id if given id""
This commit is contained in:
@@ -29,7 +29,6 @@ from osc_lib.cli import parseractions
|
|||||||
from osc_lib.command import command
|
from osc_lib.command import command
|
||||||
from osc_lib import exceptions
|
from osc_lib import exceptions
|
||||||
from osc_lib import utils
|
from osc_lib import utils
|
||||||
from oslo_utils import uuidutils
|
|
||||||
|
|
||||||
from openstackclient.common import progressbar
|
from openstackclient.common import progressbar
|
||||||
from openstackclient.i18n import _
|
from openstackclient.i18n import _
|
||||||
@@ -184,9 +183,6 @@ class AddProjectToImage(command.ShowOne):
|
|||||||
image_client = self.app.client_manager.image
|
image_client = self.app.client_manager.image
|
||||||
identity_client = self.app.client_manager.identity
|
identity_client = self.app.client_manager.identity
|
||||||
|
|
||||||
if uuidutils.is_uuid_like(parsed_args.project):
|
|
||||||
project_id = parsed_args.project
|
|
||||||
else:
|
|
||||||
project_id = common.find_project(
|
project_id = common.find_project(
|
||||||
identity_client,
|
identity_client,
|
||||||
parsed_args.project,
|
parsed_args.project,
|
||||||
|
Reference in New Issue
Block a user