Merge pull request #443 from drwahl/master

openstack_vms: update novaclient auth
This commit is contained in:
enkore 2016-08-31 16:34:01 +02:00 committed by GitHub
commit 4b38b78b1b
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ MOCK_MODULES = [
"requests", "requests",
"bs4", "bs4",
"dota2py", "dota2py",
"novaclient.v2", "novaclient",
"speedtest_cli", "speedtest_cli",
"pyzabbix", "pyzabbix",
"vk", "vk",

View File

@ -1,6 +1,6 @@
from i3pystatus import IntervalModule from i3pystatus import IntervalModule
# requires python-novaclient # requires python-novaclient
from novaclient.v2 import client from novaclient import client
import webbrowser import webbrowser
@ -35,6 +35,7 @@ class Openstack_vms(IntervalModule):
def run(self): def run(self):
nclient = client.Client( nclient = client.Client(
'2.0',
self.username, self.username,
self.password, self.password,
self.tenant_name, self.tenant_name,