File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020import iso8601
2121from novaclient import api_versions
22- import openstack .cloud ._utils
2322from osc_lib .command import command
2423from osc_lib import exceptions
2524from osc_lib import utils
25+ from oslo_utils import uuidutils
2626
2727from openstackclient .i18n import _
2828
@@ -152,7 +152,7 @@ def take_action(self, parsed_args):
152152 # If we fail to find the resource, it is possible the server is
153153 # deleted. Try once more using the <server> arg directly if it is a
154154 # UUID.
155- if openstack . cloud . _utils . _is_uuid_like (parsed_args .server ):
155+ if uuidutils . is_uuid_like (parsed_args .server ):
156156 server_id = parsed_args .server
157157 else :
158158 raise
@@ -224,7 +224,7 @@ def take_action(self, parsed_args):
224224 # If we fail to find the resource, it is possible the server is
225225 # deleted. Try once more using the <server> arg directly if it is a
226226 # UUID.
227- if openstack . cloud . _utils . _is_uuid_like (parsed_args .server ):
227+ if uuidutils . is_uuid_like (parsed_args .server ):
228228 server_id = parsed_args .server
229229 else :
230230 raise
Original file line number Diff line number Diff line change 2121import os
2222import sys
2323
24- import openstack .cloud ._utils
2524from openstack .image import image_signer
2625from osc_lib .api import utils as api_utils
2726from osc_lib .cli import format_columns
2827from osc_lib .cli import parseractions
2928from osc_lib .command import command
3029from osc_lib import exceptions
3130from osc_lib import utils
31+ from oslo_utils import uuidutils
3232
3333from openstackclient .common import progressbar
3434from openstackclient .i18n import _
@@ -159,7 +159,7 @@ def take_action(self, parsed_args):
159159 image_client = self .app .client_manager .image
160160 identity_client = self .app .client_manager .identity
161161
162- if openstack . cloud . _utils . _is_uuid_like (parsed_args .project ):
162+ if uuidutils . is_uuid_like (parsed_args .project ):
163163 project_id = parsed_args .project
164164 else :
165165 project_id = common .find_project (
You can’t perform that action at this time.
0 commit comments