mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
drop uneeded close
This commit is contained in:
parent
6f19702385
commit
90065969f7
@ -128,7 +128,6 @@ def _create_update_from_cfg(mode='create', uuid=None, vmcfg=None):
|
||||
vmadm_json_file = __salt__['temp.file'](prefix='vmadm-')
|
||||
with salt.utils.fopen(vmadm_json_file, 'w') as vmadm_json:
|
||||
vmadm_json.write(json.dumps(vmcfg))
|
||||
vmadm_json.close()
|
||||
|
||||
# vmadm validate create|update [-f <filename>]
|
||||
cmd = '{vmadm} validate {mode} {brand} -f {vmadm_json_file}'.format(
|
||||
|
Loading…
Reference in New Issue
Block a user