def generate_vm_name(options):
    '''
    Generate a random enough vm name
    '''
    if os.environ in 'BUILD_NUMBER':
        random_part = 'BUILD{0:0>6}'.format(os.environ.get('BUILD_NUMBER'))
    else:
        random_part = os.urandom(3).encode('hex')

    return '{0}-{1}-{2}'.format(options.vm_prefix, options.platform, random_part)
dataset/ETHPy150Open saltstack/salt/tests/jenkins.py/generate_vm_name/swapped operands of `in`