diff --git a/watcher_tempest_plugin/services/infra_optim/v1/json/client.py b/watcher_tempest_plugin/services/infra_optim/v1/json/client.py index 2ee27f5..369256b 100644 --- a/watcher_tempest_plugin/services/infra_optim/v1/json/client.py +++ b/watcher_tempest_plugin/services/infra_optim/v1/json/client.py @@ -15,7 +15,7 @@ # limitations under the License. from oslo_serialization import jsonutils -from watcher.common import utils +from oslo_utils import uuidutils from watcher_tempest_plugin.services.infra_optim import base @@ -68,7 +68,7 @@ class InfraOptimClientJSON(base.BaseInfraOptimClient): parameters = {k: v for k, v in kwargs.items() if v is not None} # This name is unique to avoid the DB unique constraint on names - unique_name = 'Tempest Audit Template %s' % utils.generate_uuid() + unique_name = 'Tempest Audit Template %s' % uuidutils.generate_uuid() audit_template = { 'name': parameters.get('name', unique_name),