Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix novaclient _discover_extensions bug
python-novaclient removed
novaclient.shell.OpenStackComputeShell._discover_extensions()
in favor of novaclient._discover_extensions()
openstack/python-novaclient@cb7be12
  • Loading branch information
jasondunsmore committed Sep 2, 2015
1 parent 0ce3f7d commit 2901b9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyrax/__init__.py
Expand Up @@ -56,7 +56,7 @@

from novaclient import exceptions as _cs_exceptions
from novaclient import auth_plugin as _cs_auth_plugin
from novaclient.shell import OpenStackComputeShell as _cs_shell
from novaclient import client as nc
from novaclient.v1_1 import client as _cs_client
from novaclient.v1_1.servers import Server as CloudServer

Expand Down Expand Up @@ -675,8 +675,7 @@ def connect_to_cloudservers(region=None, context=None, verify_ssl=None, **kwargs
insecure = not get_setting("verify_ssl")
else:
insecure = not verify_ssl
cs_shell = _cs_shell()
extensions = cs_shell._discover_extensions("1.1")
extensions = nc.discover_extensions("1.1")
cloudservers = _cs_client.Client(context.username, context.password,
project_id=context.tenant_id, auth_url=context.auth_endpoint,
auth_system=id_type, region_name=region, service_type="compute",
Expand Down

0 comments on commit 2901b9c

Please sign in to comment.