summaryrefslogtreecommitdiff
path: root/designateclient
diff options
context:
space:
mode:
authorGraham Hayes <graham.hayes@hpe.com>2016-03-29 13:49:02 +0100
committerGraham Hayes <graham.hayes@hpe.com>2016-03-29 14:45:36 +0100
commit255523c63d4d843be632b73eeab98e2b6f408470 (patch)
tree576d8c32a86e45f85734b45cc2ecde573daa0be3 /designateclient
parent9011aac4ccf5219453efbab38623b63a57282de0 (diff)
downloadpython-designateclient-255523c63d4d843be632b73eeab98e2b6f408470.tar.gz
Move all V2 Controllers to inherit from the v2
Previously some v2 controllers inherited from the base client.Controller. Fixes have been added to the V2Controller that allow it to work with lists + next links. Change-Id: I23b4ecc52b71cafc4085ab6586164bd03ac6afea
Diffstat (limited to 'designateclient')
-rw-r--r--designateclient/v2/base.py2
-rw-r--r--designateclient/v2/blacklists.py4
-rw-r--r--designateclient/v2/limits.py4
-rw-r--r--designateclient/v2/nameservers.py4
-rw-r--r--designateclient/v2/reverse.py4
5 files changed, 9 insertions, 9 deletions
diff --git a/designateclient/v2/base.py b/designateclient/v2/base.py
index 16d47c4..1700c82 100644
--- a/designateclient/v2/base.py
+++ b/designateclient/v2/base.py
@@ -40,4 +40,4 @@ class V2Controller(client.Controller):
return data
- return body \ No newline at end of file
+ return body
diff --git a/designateclient/v2/blacklists.py b/designateclient/v2/blacklists.py
index f1d5747..102c018 100644
--- a/designateclient/v2/blacklists.py
+++ b/designateclient/v2/blacklists.py
@@ -13,10 +13,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from designateclient import client
+from designateclient.v2.base import V2Controller
-class BlacklistController(client.Controller):
+class BlacklistController(V2Controller):
def create(self, pattern, description=None):
data = {
'pattern': pattern,
diff --git a/designateclient/v2/limits.py b/designateclient/v2/limits.py
index 1c89a07..ba99629 100644
--- a/designateclient/v2/limits.py
+++ b/designateclient/v2/limits.py
@@ -13,9 +13,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from designateclient import client
+from designateclient.v2.base import V2Controller
-class LimitController(client.Controller):
+class LimitController(V2Controller):
def get(self):
return self._get('/limits')
diff --git a/designateclient/v2/nameservers.py b/designateclient/v2/nameservers.py
index 89c0a08..b35649d 100644
--- a/designateclient/v2/nameservers.py
+++ b/designateclient/v2/nameservers.py
@@ -13,11 +13,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from designateclient import client
+from designateclient.v2.base import V2Controller
from designateclient.v2 import utils as v2_utils
-class NameServerController(client.Controller):
+class NameServerController(V2Controller):
def list(self, zone):
zone = v2_utils.resolve_by_name(self.client.zones.list, zone)
diff --git a/designateclient/v2/reverse.py b/designateclient/v2/reverse.py
index 3279a02..99fe1d2 100644
--- a/designateclient/v2/reverse.py
+++ b/designateclient/v2/reverse.py
@@ -13,10 +13,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from designateclient import client
+from designateclient.v2.base import V2Controller
-class FloatingIPController(client.Controller):
+class FloatingIPController(V2Controller):
def set(self, floatingip_id, ptrdname, description=None, ttl=None):
data = {
'ptrdname': ptrdname