bugfix: use correct function close calls

This commit is contained in:
Konstantin Manna 2015-09-26 23:51:27 +02:00 committed by Matt Clay
parent f10de6e47b
commit 19da801665
2 changed files with 2 additions and 2 deletions

View file

@ -211,7 +211,7 @@ def download_request(module, name, apiid, apikey, cert_type):
body = response.read()
cert_file = open(cert_file_path, 'w')
cert_file.write(body)
cert_file.close
cert_file.close()
os.chmod(cert_file_path, 0600)
except:
module.fail_json("Could not write to certificate file")

View file

@ -222,7 +222,7 @@ class Zone(object):
node = open('%s/root/etc/nodename' % self.path, 'w')
node.write(self.name)
node.close
node.close()
id = open('%s/root/etc/.sysIDtool.state' % self.path, 'w')
id.write('1 # System previously configured?\n')