def create(name,
           level,
           devices,
           metadata='default',
           test_mode=False,
           **kwargs):
    opts = []
    raid_devices = len(devices)

    for key in kwargs:
        if not key.startswith('__'):
            opts.append('--{0}'.format(key))
            if kwargs[key] is not True:
                opts.append(str(kwargs[key]))
        if key == 'spare-devices':
            raid_devices -= int(kwargs[key])

    cmd = ['mdadm',
           '-C', name,
           '-R',
           '-v'] + opts + [
           '-l', str(level),
           '-e', metadata,
           '-n', str(raid_devices)] + devices

    cmd_str = ' '.join(cmd)

    if test_mode is True:
        return cmd_str
    elif test_mode is False:
        return __salt__['cmd.run'](cmd, python_shell=False)
Returns the level that stdout runs at
dataset/ETHPy150Open saltstack/salt/salt/modules/mdadm.py/create--crossover with--dataset/ETHPy150Open femmerling/EmeraldBox/virtualenv.py/Logger._stdout_level