From 90065969f7f0f60188fd21e6e8f6a2795cf7faeb Mon Sep 17 00:00:00 2001 From: Jorge Schrauwen Date: Sun, 20 Mar 2016 14:40:17 +0000 Subject: [PATCH] drop uneeded close --- salt/modules/smartos_vmadm.py | 1 - 1 file changed, 1 deletion(-) diff --git a/salt/modules/smartos_vmadm.py b/salt/modules/smartos_vmadm.py index 5332be577f..2c6aaaaddb 100644 --- a/salt/modules/smartos_vmadm.py +++ b/salt/modules/smartos_vmadm.py @@ -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 ] cmd = '{vmadm} validate {mode} {brand} -f {vmadm_json_file}'.format(