python-novaclient-3.1.0+ compatibility
As of python-novaclient-3.1.0+ (1f11840) client migrated to keystoneauth and so nova checks have to adapt too. Change-Id: I4d4f447ceeba36d6645d4da456c008708bc4a393
This commit is contained in:
parent
d0d2e9eb30
commit
d9f2d1577e
|
@ -127,9 +127,7 @@ class Nova(object):
|
|||
options.command = None
|
||||
self.nova.do_help(options)
|
||||
sys.exit(2)
|
||||
auth_token = None
|
||||
if options.os_auth_token and options.os_endpoint:
|
||||
auth_token = options.os_auth_token
|
||||
auth_token = getattr(args, 'os_token', None)
|
||||
api_version = '2.1'
|
||||
nova_client = Client(
|
||||
api_version,
|
||||
|
|
Loading…
Reference in New Issue