mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
16 lines
347 B
Python
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)
|
|
)
|