diff options
author | Nicolas Bock <nicolas.bock@canonical.com> | 2020-10-03 07:28:49 -0600 |
---|---|---|
committer | Nicolas Bock <nicolas.bock@canonical.com> | 2020-10-10 06:47:06 -0600 |
commit | 8f9c503ecc7f4fc8bd6cb2108256ba3e63bb3b73 (patch) | |
tree | 542d4378ecc9c1386320eef5fad53d87fd53b8a0 /designateclient | |
parent | 055d1601beb95644e37976d9f4aa3601d5084bc1 (diff) | |
download | python-designateclient-8f9c503ecc7f4fc8bd6cb2108256ba3e63bb3b73.tar.gz |
Increase hacking version
Increase the hacking version in test-requirements to match the
version used in the `designate` project.
This change fixes a few errors that the more recent `pyflakes` flags.
Change-Id: If7afefde0f33161016a27774021d27239c642eb5
Co-Authored-By: Michael Chapman <woppin@gmail.com>
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
Diffstat (limited to 'designateclient')
-rw-r--r-- | designateclient/osc/plugin.py | 6 | ||||
-rw-r--r-- | designateclient/v2/cli/quotas.py | 2 | ||||
-rw-r--r-- | designateclient/v2/recordsets.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/designateclient/osc/plugin.py b/designateclient/osc/plugin.py index 6b8719b..2d088b2 100644 --- a/designateclient/osc/plugin.py +++ b/designateclient/osc/plugin.py @@ -46,8 +46,8 @@ def build_option_parser(parser): '--os-dns-api-version', metavar='<dns-api-version>', default=os.environ.get('OS_DNS_API_VERSION', '2'), - help='DNS API version, default=' + - DEFAULT_API_VERSION + - ' (Env: OS_DNS_API_VERSION)') + help=('DNS API version, default=' + + DEFAULT_API_VERSION + + ' (Env: OS_DNS_API_VERSION)')) return parser diff --git a/designateclient/v2/cli/quotas.py b/designateclient/v2/cli/quotas.py index 2244ca7..76ea7f6 100644 --- a/designateclient/v2/cli/quotas.py +++ b/designateclient/v2/cli/quotas.py @@ -67,7 +67,7 @@ class SetQuotasCommand(show.ShowOne): """Set quotas""" def _build_options_list(self): - return itertools.chain(DNS_QUOTAS.items()) + return itertools.chain(DNS_QUOTAS.items()) def get_parser(self, prog_name): parser = super(SetQuotasCommand, self).get_parser(prog_name) diff --git a/designateclient/v2/recordsets.py b/designateclient/v2/recordsets.py index 188148c..44725de 100644 --- a/designateclient/v2/recordsets.py +++ b/designateclient/v2/recordsets.py @@ -26,8 +26,8 @@ class RecordSetController(V2Controller): # If we get a zone name we'll need to get the ID of it before POST. if isinstance(zone, six.string_types) and not \ - uuidutils.is_uuid_like(zone): - zone_info = self.client.zones.get(zone) + uuidutils.is_uuid_like(zone): + zone_info = self.client.zones.get(zone) elif isinstance(zone, dict): zone_info = zone |