diff --git a/plugins/inventory/rax.py b/plugins/inventory/rax.py index 283486ef14..abfc90dd51 100755 --- a/plugins/inventory/rax.py +++ b/plugins/inventory/rax.py @@ -70,9 +70,9 @@ notes: requirements: [ "pyrax" ] examples: - description: List server instances - code: RAX_CREDS=~/.raxpub RAX_REGION=ORD rax.py --list + code: RAX_CREDS_FILE=~/.raxpub RAX_REGION=ORD rax.py --list - description: List server instance properties - code: RAX_CREDS=~/.raxpub RAX_REGION=ORD rax.py --host + code: RAX_CREDS_FILE=~/.raxpub RAX_REGION=ORD rax.py --host ''' import sys @@ -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)