Skip to content

Commit

Permalink
Up rev'd API version
Browse files Browse the repository at this point in the history
  • Loading branch information
psav committed Dec 19, 2015
1 parent 02a4e1d commit 31e945a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mgmtsystem/openstack.py
Expand Up @@ -11,7 +11,7 @@
from cinderclient import exceptions as cinder_exceptions
from heatclient import client as heat_client
from keystoneclient.v2_0 import client as oskclient
from novaclient.v1_1 import client as osclient
from novaclient import client as osclient
from novaclient import exceptions as os_exceptions
from novaclient.client import HTTPClient
from requests.exceptions import Timeout
Expand All @@ -20,8 +20,8 @@

from base import MgmtSystemAPIBase, VMInfo
from exceptions import (
NoMoreFloatingIPs, NetworkNameNotFound, VMInstanceNotFound, VMNotFoundViaIP, ActionTimedOutError,
VMError
NoMoreFloatingIPs, NetworkNameNotFound, VMInstanceNotFound, VMNotFoundViaIP,
ActionTimedOutError, VMError
)


Expand Down Expand Up @@ -89,7 +89,8 @@ def __init__(self, **kwargs):
@property
def api(self):
if not self._api:
self._api = osclient.Client(self.username,
self._api = osclient.Client('2',
self.username,
self.password,
self.tenant,
self.auth_url,
Expand Down

0 comments on commit 31e945a

Please sign in to comment.