Replaces uuid.uuid4 with uuidutils.generate_uuid()

Openstack common has a wrapper for generating uuids. We should
use that function to generate uuids for consistency.

Change-Id: I9b6ba92d97c3f2d18b55752c1365184c5c342540
This commit is contained in:
lingyongxu 2017-03-27 10:36:30 +08:00
parent 36fad5ee37
commit 895f051ad4
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import uuid
from oslo_utils import uuidutils
def generate_uuid():
return uuid.uuid4().hex
return uuidutils.generate_uuid(dashed=False)