diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-04-09 10:40:04 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-04-09 10:41:29 -0700 |
commit | efa93d423939442f68242acf1ffa92565086941a (patch) | |
tree | 364e59f29fadb9de3dab891098bbd0aa0958f477 | |
parent | 9bd2e3b75218983c57cfec61de261493ab0e5eb5 (diff) | |
download | ansible-efa93d423939442f68242acf1ffa92565086941a.tar.gz |
Reverse the error messages from jsonfile get and set
-rw-r--r-- | lib/ansible/cache/jsonfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/cache/jsonfile.py b/lib/ansible/cache/jsonfile.py index 93ee69903b..9c45dc22fd 100644 --- a/lib/ansible/cache/jsonfile.py +++ b/lib/ansible/cache/jsonfile.py @@ -60,7 +60,7 @@ class CacheModule(BaseCacheModule): try: f = codecs.open(cachefile, 'r', encoding='utf-8') except (OSError,IOError), e: - utils.warning("error while trying to write to %s : %s" % (cachefile, str(e))) + utils.warning("error while trying to read %s : %s" % (cachefile, str(e))) else: value = json.load(f) self._cache[key] = value @@ -76,7 +76,7 @@ class CacheModule(BaseCacheModule): try: f = codecs.open(cachefile, 'w', encoding='utf-8') except (OSError,IOError), e: - utils.warning("error while trying to read %s : %s" % (cachefile, str(e))) + utils.warning("error while trying to write to %s : %s" % (cachefile, str(e))) else: f.write(utils.jsonify(value)) finally: |