Fallback for --randomize in case of empty value

This commit is contained in:
Miroslav Stampar
2019-02-28 02:29:13 +01:00
parent 9ba4da8820
commit c89c1e7abf
4 changed files with 9 additions and 6 deletions

View File

@@ -3947,6 +3947,9 @@ def randomizeParameterValue(value):
parts[-1] = random.sample(RANDOMIZATION_TLDS, 1)[0]
retVal = '.'.join(parts)
if not retVal:
retVal = randomStr(lowercase=True)
return retVal
@cachedmethod