def firmware_update(hosts=None, directory=''):
    ret = {}
    ret.changes = {}
    success = True
    for host, firmwarefile in hosts:
        try:
            _firmware_update(firmwarefile, host, directory)
            ret['changes'].update({
                'host': {
                    'comment': 'Firmware update submitted for {0}'.format(host),
                    'success': True,
                }
            })
        except CommandExecutionError as err:
            success = False
            ret['changes'].update({
                'host': {
                    'comment': 'FAILED to update firmware for {0}'.format(host),
                    'success': False,
                    'reason': str(err),
                }
            })
    ret['result'] = success
    return ret
Encrypts a message using encryption key 'ekey', working modulo
dataset/ETHPy150Open saltstack/salt/salt/states/dellchassis.py/firmware_update--crossover with--dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/rsa/_version133.py/encrypt_int