mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-13 04:11:00 +00:00
5
lib/ansible/plugins/cache/jsonfile.py
vendored
5
lib/ansible/plugins/cache/jsonfile.py
vendored
@@ -101,7 +101,10 @@ class CacheModule(BaseCacheModule):
|
||||
else:
|
||||
f.write(jsonify(value))
|
||||
finally:
|
||||
f.close()
|
||||
try:
|
||||
f.close()
|
||||
except UnboundLocalError:
|
||||
pass
|
||||
|
||||
def has_expired(self, key):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user