Replaces uuid.uuid4 with uuidutils.generate_uuid()

Change-Id: I38740842402841ae446603faacbbe969854f2396
Closes-Bug: #1082248
This commit is contained in:
qinchunhua
2016-11-17 19:27:54 +08:00
parent 3ebe8ab70f
commit 876f3adb22
4 changed files with 13 additions and 13 deletions

View File

@@ -39,7 +39,7 @@ Here is an example showing how you can write a planner plugin called
# Filepath = third-party/third_party/dummy.py
# Import path = third_party.dummy
import uuid
from oslo_utils import uuidutils
from watcher.decision_engine.planner import base
@@ -47,7 +47,7 @@ Here is an example showing how you can write a planner plugin called
def _create_action_plan(self, context, audit_id):
action_plan_dict = {
'uuid': uuid.uuid4(),
'uuid': uuidutils.generate_uuid(),
'audit_id': audit_id,
'first_action_id': None,
'state': objects.action_plan.State.RECOMMENDED