drop uneeded close

This commit is contained in:
Jorge Schrauwen 2016-03-20 14:40:17 +00:00
parent 6f19702385
commit 90065969f7

View File

@ -128,7 +128,6 @@ def _create_update_from_cfg(mode='create', uuid=None, vmcfg=None):
vmadm_json_file = __salt__['temp.file'](prefix='vmadm-') vmadm_json_file = __salt__['temp.file'](prefix='vmadm-')
with salt.utils.fopen(vmadm_json_file, 'w') as vmadm_json: with salt.utils.fopen(vmadm_json_file, 'w') as vmadm_json:
vmadm_json.write(json.dumps(vmcfg)) vmadm_json.write(json.dumps(vmcfg))
vmadm_json.close()
# vmadm validate create|update [-f <filename>] # vmadm validate create|update [-f <filename>]
cmd = '{vmadm} validate {mode} {brand} -f {vmadm_json_file}'.format( cmd = '{vmadm} validate {mode} {brand} -f {vmadm_json_file}'.format(