7 Commits

Author SHA1 Message Date
Erik Olof Gunnar Andersson
b6e78fefdd pyupgrade changes for Python3.8+
Result of running

$ pyupgrade --py38-plus $(git ls-files | grep ".py$")

This was inspired by Nova [1] and Octavia [2]

Fixed PEP8 errors introduced by pyupgrade by running:

$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
  --in-place designate

and manual updates.

[1]: https://review.opendev.org/c/openstack/nova/+/896986
[2]: https://review.opendev.org/c/openstack/octavia/+/899263

Change-Id: I27d09edb7e75081379002615f4ecdb1aa007dbcf
2023-11-17 09:42:13 -08:00
Jens Harbott
5b502b9f78 Make remote error handling more robust
When a RemoteError is created, it is passed the complete content of the
json response from the server. Thus is can happen that it contains
unexpected entries, we should just ignore them.

Change-Id: I2155d1d44432884f19ef926c02b9d0f99ade57d9
Closes-Bug: 1714460
2017-09-01 10:45:10 +00:00
Graham Hayes
f540d1c09b Show proper error on over quota commands
Change-Id: I811a0f0e3dcc3406ba9a07b0d54788a3241a7cd2
Closes-Bug: #1629222
2017-01-31 23:03:19 +00:00
James Li
87a48c7725 Makes error msg more helpful
In the case that designate api returns an error response which
does not have an 'message' entry, CLI will prints out nothing helpful
for users. The patch grabs info from response to try to provide a helpful msg.

Fixed axfr resource too.

Change-Id: I810426b6d4f731cc5ead4372083abf6515c05dc3
2015-09-24 12:26:59 +00:00
TerryHowe
7beda7dafd Make is so exceptions have some message
If you don't have a message on an exception it prints out as
nothing.  This change will default the messaqge to the class
name which should be useful.

Change-Id: Ie246b37c971e8c30752714b49aa55e69482b32e7
2015-09-01 11:20:13 -06:00
Endre Karlson
2a2c85ce21 V2 Bindings
This provides bindings for:

- zones
- recordsets
- tlds
- blacklists
- limits
- nameservers

With associated unit tests.

Change-Id: Ie9b79340bd327b78916fd038633842da3ace881b
2015-05-07 17:23:09 +02:00
Kiall Mac Innes
67c14f0573 Rename Moniker -> Designate
Change-Id: Idf7153aa287adc874a2878dc829950fda52a4879
2013-06-09 22:08:11 +01:00