mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
2d042d73b0
commit
07846f7bec
1 changed files with 4 additions and 1 deletions
3
lib/ansible/plugins/cache/jsonfile.py
vendored
3
lib/ansible/plugins/cache/jsonfile.py
vendored
|
@ -101,7 +101,10 @@ class CacheModule(BaseCacheModule):
|
||||||
else:
|
else:
|
||||||
f.write(jsonify(value))
|
f.write(jsonify(value))
|
||||||
finally:
|
finally:
|
||||||
|
try:
|
||||||
f.close()
|
f.close()
|
||||||
|
except UnboundLocalError:
|
||||||
|
pass
|
||||||
|
|
||||||
def has_expired(self, key):
|
def has_expired(self, key):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue