mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add variable for format parameter
This commit is contained in:
parent
8277747a04
commit
426187489f
1 changed files with 1 additions and 1 deletions
2
lib/ansible/plugins/cache/jsonfile.py
vendored
2
lib/ansible/plugins/cache/jsonfile.py
vendored
|
@ -71,7 +71,7 @@ class CacheModule(BaseCacheModule):
|
|||
except ValueError as e:
|
||||
self._display.warning("error while trying to read %s : %s. Most likely a corrupt file, so erasing and failing." % (cachefile, str(e)))
|
||||
self.delete(key)
|
||||
raise AnsibleError("The JSON cache file %s was corrupt, or did not otherwise contain valid JSON data. It has been removed, so you can re-run your command now.")
|
||||
raise AnsibleError("The JSON cache file %s was corrupt, or did not otherwise contain valid JSON data. It has been removed, so you can re-run your command now." % cachefile)
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
|
|
Loading…
Reference in a new issue