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:
parent
36fad5ee37
commit
895f051ad4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue