From e366712aca164a6d504695b0e5ea898580ff4654 Mon Sep 17 00:00:00 2001 From: Paul Durivage Date: Fri, 27 Sep 2013 15:50:32 -0500 Subject: [PATCH] Use set_setting; alleviates pyrax requiring the ~/pyrax.cfg in order to establish identity_type --- plugins/inventory/rax.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/inventory/rax.py b/plugins/inventory/rax.py index 283486ef14..5acb6050a6 100755 --- a/plugins/inventory/rax.py +++ b/plugins/inventory/rax.py @@ -112,6 +112,8 @@ except KeyError, e: sys.stderr.write('Unable to load %s\n' % e.message) sys.exit(1) +pyrax.set_setting('identity_type', 'rackspace') + try: pyrax.set_credential_file(os.path.expanduser(creds_file), region=region)