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:
Martin Mágr 2016-07-25 14:02:09 +02:00
parent d0d2e9eb30
commit d9f2d1577e
1 changed files with 1 additions and 3 deletions

View File

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