From cd1125aac24cf8e101247c8260b97e0b140b0be2 Mon Sep 17 00:00:00 2001 From: Tom Berger Date: Tue, 28 Oct 2014 17:56:49 +0100 Subject: [PATCH] Save the cache in a file specific to the RackSpace account in use. --- contrib/inventory/rax.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/inventory/rax.py b/contrib/inventory/rax.py index 41eb9ed3177..3d358e07cee 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):