diff options
author | Michael Johnson <johnsomor@gmail.com> | 2023-02-15 21:42:17 +0000 |
---|---|---|
committer | Erik Olof Gunnar Andersson <eandersson@blizzard.com> | 2023-02-21 20:12:04 +0000 |
commit | 8910a2014be52808cb3f4a42953b2176e852d0ad (patch) | |
tree | a7f607b6d5f07dd6f231574b63a1d6949648f16c /designate/objects/adapters/api_v2/validation_error.py | |
parent | fbfb1b0dd80bbcc2a6d1f09259972657d66fd998 (diff) | |
download | designate-8910a2014be52808cb3f4a42953b2176e852d0ad.tar.gz |
Add hacking check for line continuation backslash16.0.0.0rc116.0.0
This patch adds a hacking check for line continuation backslashes and fixes the occurences that existed in the code.
Change-Id: I1d1269de231f6e747248a9d816a1d64e3968c69b
Diffstat (limited to 'designate/objects/adapters/api_v2/validation_error.py')
-rw-r--r-- | designate/objects/adapters/api_v2/validation_error.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/designate/objects/adapters/api_v2/validation_error.py b/designate/objects/adapters/api_v2/validation_error.py index 4e4d5199..9ea45b68 100644 --- a/designate/objects/adapters/api_v2/validation_error.py +++ b/designate/objects/adapters/api_v2/validation_error.py @@ -113,10 +113,9 @@ class ValidationErrorAPIv2Adapter(base.APIv2Adapter): # No need to continue the loop break - if not isinstance( - value.get( - 'rename', NotSpecifiedSential()), NotSpecifiedSential)\ - and path_segment == value.get('rename'): + if (not isinstance(value.get('rename', NotSpecifiedSential()), + NotSpecifiedSential) and + path_segment == value.get('rename')): # Just do the rename path_segment = key |