mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint fixes
This commit is contained in:
parent
7cea3afb4f
commit
1b57a57c48
1 changed files with 3 additions and 3 deletions
|
@ -146,6 +146,7 @@ log = logging.getLogger(__name__)
|
|||
|
||||
from salt.exceptions import CommandExecutionError
|
||||
|
||||
|
||||
def __virtual__():
|
||||
return 'chassis.cmd' in __salt__
|
||||
|
||||
|
@ -554,7 +555,7 @@ def _firmware_update(firmwarefile='', host='',
|
|||
'''
|
||||
Update firmware for a single host
|
||||
'''
|
||||
dest = os.path.join(directory, filename[7:])
|
||||
dest = os.path.join(directory, firmwarefile[7:])
|
||||
|
||||
__salt__['cp.get_file'](firmwarefile, dest)
|
||||
|
||||
|
@ -596,7 +597,7 @@ def firmware_update(hosts=None, directory=''):
|
|||
success = True
|
||||
for host, firmwarefile in hosts:
|
||||
try:
|
||||
firmware_update(firmwarefile, host, directory)
|
||||
_firmware_update(firmwarefile, host, directory)
|
||||
ret['changes'].update({
|
||||
'host': {
|
||||
'comment': 'Firmware update submitted for {0}'.format(host),
|
||||
|
@ -614,4 +615,3 @@ def firmware_update(hosts=None, directory=''):
|
|||
})
|
||||
ret['result'] = success
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue