From 426187489f12f6ab594a2dad9818a21c06bc10c2 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 13 Oct 2015 02:33:18 -0400 Subject: [PATCH] Add variable for format parameter --- lib/ansible/plugins/cache/jsonfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/cache/jsonfile.py b/lib/ansible/plugins/cache/jsonfile.py index 8771fc9742..848e905de3 100644 --- a/lib/ansible/plugins/cache/jsonfile.py +++ b/lib/ansible/plugins/cache/jsonfile.py @@ -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()