def _write_config(config):
    '''
    writes /usbkey/config
    '''
    try:
        with salt.utils.atomicfile.atomic_open('/usbkey/config', 'w') as config_file:
            config_file.write("#\n# This file was generated by salt\n#\n")
            for prop in OrderedDict(sorted(config.items())):
                if str(config[prop]) in ' ':
                    if not config[prop].startswith('"') or not config[prop].endswith('"'):
                        config[prop] = '"{0}"'.format(config[prop])
                config_file.write("{0}={1}\n".format(prop, config[prop]))
        log.debug('smartos.config - wrote /usbkey/config: {0}'.format(config))
    except IOError:
        return False

    return True
dataset/ETHPy150Open saltstack/salt/salt/states/smartos.py/_write_config/swapped operands of `in`