diff --git a/tempest/lib/common/utils/data_utils.py b/tempest/lib/common/utils/data_utils.py index 438d73e5be..3483c51620 100644 --- a/tempest/lib/common/utils/data_utils.py +++ b/tempest/lib/common/utils/data_utils.py @@ -50,8 +50,7 @@ def rand_name(name='', prefix='tempest'): (e.g. 'prefixfoo-namebar-154876201') :rtype: string """ - randbits = str(random.randint(1, 0x7fffffff)) - rand_name = randbits + rand_name = str(random.randint(1, 0x7fffffff)) if name: rand_name = name + '-' + rand_name if prefix: