From 521ce241b9e0f7bb30460f9c16d866648c9cd6bf Mon Sep 17 00:00:00 2001 From: Alexander Chadin Date: Fri, 18 Aug 2017 12:30:04 +0300 Subject: [PATCH] Remove usage of watcher modules As DEVSTACK_GATE_TEMPEST_ALL_PLUGINS[1] is prohibited to use, we need to remove any usage of original project modules. [1]: https://etherpad.openstack.org/p/tempest-separate-plugin Change-Id: Ie2a87959e64b8db1401de01b1414324c79cf3024 --- watcher_tempest_plugin/services/infra_optim/v1/json/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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),