Use set_setting; alleviates pyrax requiring the ~/pyrax.cfg in order to establish identity_type

This commit is contained in:
Paul Durivage 2013-09-27 15:50:32 -05:00
parent 039d4c95d9
commit e366712aca

View file

@ -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)