salt/tests/integration/cloud/helpers/__init__.py
Mike Place 52f6887124 Lint
2016-02-11 13:52:59 -07:00

16 lines
347 B
Python

# -*- coding: utf-8 -*-
from __future__ import absolute_import
import random
import string
from salt.ext.six.moves import range
def random_name(size=6):
'''
Generates a random cloud instance name
'''
return 'CLOUD-TEST-' + ''.join(
random.choice(string.ascii_uppercase + string.digits)
for x in range(size)
)