From 19da8016653a741e02ddc6445131235b4752cb02 Mon Sep 17 00:00:00 2001 From: Konstantin Manna Date: Sat, 26 Sep 2015 23:51:27 +0200 Subject: [PATCH] bugfix: use correct function close calls --- lib/ansible/modules/extras/monitoring/boundary_meter.py | 2 +- lib/ansible/modules/extras/system/solaris_zone.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/monitoring/boundary_meter.py b/lib/ansible/modules/extras/monitoring/boundary_meter.py index 3e03a55c8a..99cb74f870 100644 --- a/lib/ansible/modules/extras/monitoring/boundary_meter.py +++ b/lib/ansible/modules/extras/monitoring/boundary_meter.py @@ -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") diff --git a/lib/ansible/modules/extras/system/solaris_zone.py b/lib/ansible/modules/extras/system/solaris_zone.py index 19da7cc6fe..1dffe605df 100644 --- a/lib/ansible/modules/extras/system/solaris_zone.py +++ b/lib/ansible/modules/extras/system/solaris_zone.py @@ -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')