Merge lp:~ajkavanagh/ubuntu/precise/serverstack-dns/update-python-novaclient-usage into lp:~openstack-charmers/ubuntu/precise/serverstack-dns/trunk

Proposed by Alex Kavanagh
Status: Merged
Merged at revision: 15
Proposed branch: lp:~ajkavanagh/ubuntu/precise/serverstack-dns/update-python-novaclient-usage
Merge into: lp:~openstack-charmers/ubuntu/precise/serverstack-dns/trunk
Diff against target: 21 lines (+2/-2)
1 file modified
serverstack-tenant-dns (+2/-2)
To merge this branch: bzr merge lp:~ajkavanagh/ubuntu/precise/serverstack-dns/update-python-novaclient-usage
Reviewer Review Type Date Requested Status
James Page Pending
Review via email: mp+288329@code.launchpad.net

Description of the change

Update serverstack-dns to work with xenial version of python-novaclient (3.2+) were the deprecated novaclient.v1_1 module has been removed.
Updated the instantiation of Client() to include the api version with "2".

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'serverstack-tenant-dns'
--- serverstack-tenant-dns 2015-11-18 14:31:10 +0000
+++ serverstack-tenant-dns 2016-03-07 18:15:21 +0000
@@ -9,7 +9,7 @@
9from subprocess import check_call9from subprocess import check_call
1010
11from kombu import Connection, Exchange, Queue11from kombu import Connection, Exchange, Queue
12from novaclient.v1_1 import client12from novaclient import client
1313
14CONFIG_FILE = '/etc/serverstack-dns/dns.conf'14CONFIG_FILE = '/etc/serverstack-dns/dns.conf'
1515
@@ -112,7 +112,7 @@
112 global _client112 global _client
113 if _client is not None:113 if _client is not None:
114 return _client114 return _client
115 _client = client.Client(config['os_username'], config['os_password'],115 _client = client.Client("2", config['os_username'], config['os_password'],
116 config['os_tenant_name'], config['os_auth_url'],116 config['os_tenant_name'], config['os_auth_url'],
117 service_type='compute')117 service_type='compute')
118 return _client118 return _client

Subscribers

People subscribed via source and target branches

to status/vote changes: