Merge "Simplify uuid without dashed"

This commit is contained in:
Jenkins 2016-12-16 05:15:56 +00:00 committed by Gerrit Code Review
commit 332ce11a83

View File

@ -64,7 +64,7 @@ def gen_random_resource_name(resource="", timestamp=True):
if timestamp: if timestamp:
tstamp = time.strftime("%d-%m-%H-%M-%S") tstamp = time.strftime("%d-%m-%H-%M-%S")
fields.append(tstamp) fields.append(tstamp)
fields.append(uuidutils.generate_uuid().replace("-", "")) fields.append(uuidutils.generate_uuid(dashed=False))
return "_".join(fields) return "_".join(fields)