summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorTom Berger <tom.berger@gmail.com>2014-10-28 17:56:49 +0100
committerAbhijit Menon-Sen <ams@2ndQuadrant.com>2015-08-11 15:17:32 +0200
commitcd1125aac24cf8e101247c8260b97e0b140b0be2 (patch)
tree716e1548cbf1bd42d0643749fe12a15d411ced42 /contrib
parentCache the results for the RackSpace dynamic inventory. (diff)
downloadansible-cd1125aac24cf8e101247c8260b97e0b140b0be2.tar.xz
ansible-cd1125aac24cf8e101247c8260b97e0b140b0be2.zip
Save the cache in a file specific to the RackSpace account in use.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/inventory/rax.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/inventory/rax.py b/contrib/inventory/rax.py
index 41eb9ed317..3d358e07ce 100755
--- a/contrib/inventory/rax.py
+++ b/contrib/inventory/rax.py
@@ -344,7 +344,8 @@ def _list_into_cache(regions):
def get_cache_file_path():
- return os.path.join(gettempdir(), 'ansible-rax.cache')
+ return os.path.join(gettempdir(),
+ 'ansible-rax-{}.cache'.format(pyrax.identity.username))
def _list(regions, refresh_cache=True):