Browse Source

Remove redundant str typecasting

generate_uuid method returns uuid as str so there is no need
to typecast it to str again.

TrivialFix

Change-Id: I1c9cb410a175249467c4934d6820f55a63aaed6a
changes/59/375359/1
hussainchachuliya 5 years ago
parent
commit
2a5b7773af
  1. 2
      nova/tests/uuidsentinel.py

2
nova/tests/uuidsentinel.py

@ -23,7 +23,7 @@ class UUIDSentinels(object):
if name.startswith('_'):
raise ValueError('Sentinels must not start with _')
if name not in self._sentinels:
self._sentinels[name] = str(self._uuid_module.generate_uuid())
self._sentinels[name] = self._uuid_module.generate_uuid()
return self._sentinels[name]

Loading…
Cancel
Save