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
This commit is contained in:
parent
b065815705
commit
521ce241b9
@ -15,7 +15,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from watcher.common import utils
|
from oslo_utils import uuidutils
|
||||||
from watcher_tempest_plugin.services.infra_optim import base
|
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}
|
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
|
# 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 = {
|
audit_template = {
|
||||||
'name': parameters.get('name', unique_name),
|
'name': parameters.get('name', unique_name),
|
||||||
|
Loading…
Reference in New Issue
Block a user