Merge "Remove unnecessary line of code"

This commit is contained in:
Zuul 2018-12-28 11:38:47 +00:00 committed by Gerrit Code Review
commit ca9c706592
1 changed files with 1 additions and 2 deletions

View File

@ -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: