Kaari
4b625eba64
Use comprehension for clarity and best practice
...
Co-Authored-By: Ross McFarland <ross@github.com >
2020-01-08 19:52:13 +01:00
Charles Durieux
e22a7d2738
Fix trailing semicolon in dkim for ovh provider
...
Pulling dns records from ovh to a yaml file puts a semicolon at the end.
Pushing from yaml to ovh will fail the "dkim-compliant" verification if
there is an empty field (and there is one in case of a trailing
semicolon). With the current logic, pulling dkim record created with ovh
then pushing it back will NOT work.
This small patch ignores all empty fields in a dkim records during dkim
validation.
2020-01-08 17:45:02 +01:00
Ross McFarland
334e64c8f5
Python 3 friendly way to re-raise when tries expire
2019-12-10 12:20:25 -08:00
Ross McFarland
4fd2daa8a9
Implement reworked NS1 retry mechinism
2019-12-09 08:56:55 -08:00
Ross McFarland
9e8a417c35
Refactor thin Ns1Client wrapper out of provider
2019-12-09 08:26:20 -08:00
Ross McFarland
c4987f1a09
s/nsone/ns1/g
2019-12-09 08:13:09 -08:00
Ross McFarland
f599d91902
Update ns1 to 0.13.0 and use newer API methods
...
Results in lots of churn in the tests, but actually for the better as it
doesn't have to jump through nearly as many hoops to mock things now.
2019-12-09 08:09:41 -08:00
Ross McFarland
193d2da4dd
v0.9.9 version bump and CHANGELOG update
2019-11-04 14:56:36 -08:00
Ross McFarland
9e948aa4c8
Validate Record name & fqdn length
2019-10-18 10:36:14 -07:00
Ross McFarland
759c44f35b
EqualityTupleMixin needs an explicit inhert from object to make 2.7 happy
2019-10-14 08:39:45 -07:00
Ross McFarland
2b33f95c17
EqualityTupleMixin impl, use everywhere we were doing tuple compares
2019-10-14 08:13:07 -07:00
Ross McFarland
74048bf974
Use if, else rather than try, except KeyError
2019-10-14 07:48:47 -07:00
Ross McFarland
b8e2ec124b
Fix Manager comment wrapping
2019-10-14 07:48:17 -07:00
Ross McFarland
25b41a4a92
Adopt Route53Provider _equality_tuple suggestion
2019-10-14 07:47:36 -07:00
Ross McFarland
b3bd4382cc
Apply suggestions from code review
...
Co-Authored-By: Theo Julienne <theojulienne@github.com >
2019-10-14 07:32:09 -07:00
Ross McFarland
c788681e7c
Merge remote-tracking branch 'origin/master' into python3-start
2019-10-14 07:25:07 -07:00
Adam Smith
baa1f7472f
ConstellixProvider: change ALIAS to CNAME to allow record deletion
2019-10-13 21:07:30 -07:00
Ross McFarland
b5c75d189c
Convert sources building back out to for x in y from list comprehension
2019-10-09 16:01:39 -07:00
Ross McFarland
10ad30e7ea
map( to [...]
2019-10-09 15:41:18 -07:00
Ross McFarland
4d0bc29acc
Remove a couple more filters(
2019-10-09 15:36:25 -07:00
Ross McFarland
00fa158c59
filter -> [... if]s
2019-10-09 15:31:27 -07:00
Ross McFarland
3f487197df
Manager throws ManagerException rather than Exception, more robust tests
2019-10-09 15:09:37 -07:00
Ross McFarland
00d65af6f1
Merge remote-tracking branch 'origin/master' into python3-start
2019-10-09 14:35:14 -07:00
Josef Vogt
7c34247e3b
Fix 'server error: zone not found' for NS1 provider
2019-10-09 16:08:29 +02:00
Ross McFarland
7867ad2093
Use six's StringIO, remove compat.py
2019-10-07 09:40:23 -07:00
Ross McFarland
25cc4f42db
Explicit list on filter when checking for non-existant targets
2019-10-07 09:33:14 -07:00
Ross McFarland
be06a5da94
Make sure map and keys are lists when needed
2019-10-07 09:31:15 -07:00
Ross McFarland
7958233fcc
Consistently order changes :-/
...
Many providers make their modifications in the order that changes comes. In
python3 this causes things to be inconsistently ordered. That mostly works, but
could result in hidenbugs (e.g. Route53Provider's batching could be completely
different based on the order it sees changes.) Sorting changes consistently
is a good thing and it shouldn't hurt situations where providers are already
doing their own ordering. All-in-all more consistent is better and we have to be
explicit with python 3.
2019-10-07 09:17:48 -07:00
Ross McFarland
0708b797da
TinyDnsSource python3
2019-10-07 08:29:50 -07:00
Ross McFarland
e0c5962d79
AxfrSource python3
2019-10-07 07:58:44 -07:00
Ross McFarland
90a60d3dbd
TransipProvider python3
2019-10-07 07:53:08 -07:00
Ross McFarland
c82e94792e
RackspaceProvider python3, value types hashing
2019-10-07 07:47:43 -07:00
Ross McFarland
aeb70b2488
Route53Provider python 3, rm incf.countryutils, lots of cmp removal and ordering fixes
2019-10-05 20:01:53 -07:00
Ross McFarland
0acff67faa
Ns1Provider python3
2019-10-05 14:38:58 -07:00
Ross McFarland
37543e6a76
OvhProvider python3
2019-10-05 09:18:42 -07:00
Ross McFarland
484a5118f4
MythicBeastsProvider python3
2019-10-05 09:10:59 -07:00
Ross McFarland
742305c20b
six.moves.urllib.parse
2019-10-05 08:48:57 -07:00
Ross McFarland
470dd82202
python 3 support for constellix provider
2019-10-05 08:03:43 -07:00
Ross McFarland
db77d5b3bb
python3 compat for azure provider
2019-10-05 07:58:38 -07:00
Ross McFarland
f252aa3b98
Merge remote-tracking branch 'origin/master' into python3-start
2019-10-05 07:20:47 -07:00
Ross McFarland
659a60de46
v0.9.8 version bump and CHANGELOG updates
2019-09-30 10:18:53 -07:00
Ross McFarland
97608b3823
v0.9.7 version bump and CHANGELOG updates
2019-09-30 09:29:30 -07:00
Maikel Poot
637c254778
Handling PR Review comments.
...
- Added Specific exceptions
- str() instead of concatenation
- removed zone not found warning
2019-09-30 13:18:57 +02:00
Maikel Poot
a035ee8c84
Give the option to use a private_key_file.
...
Transip sdk also supports a private_key_file,
so forwarding that option to the provider.
Could be handy in combination with k8s secrets.
2019-09-26 14:49:14 +02:00
Maikel Poot
71f215932d
whitespaces around operators to make /script/lint happy again
2019-09-25 14:51:53 +02:00
Maikel Poot
9cab94a83a
Some codestyle review changes.
2019-09-25 14:45:41 +02:00
Maikel Poot
cebc629a06
Enforce values as basic string to fix yaml export error
...
Fixes an exception in combination
with the yamlProvider as a target
The unmodified value object isn't
represented as string while
building the yaml output
The Exception:
yaml.representer.RepresenterError:
('cannot represent an object', 1.1.1.1)
yaml/representer.py@249,
represent_undefined()
2019-09-25 14:33:49 +02:00
Maikel Poot
59e44b865c
Added detection for edge case that could happen with existing records where the value is '@'
...
TransIP allows '@' as value to alias the root record.
'@' was on populate appended with the zone, which trigger an unneeded update.
'@' => '@.example.com.' -> 'example.com'
This fix will stop the unneeded update
2019-09-25 11:24:13 +02:00
Maikel Poot
7056d29907
fixes lint warning.
2019-09-25 08:18:59 +02:00
Maikel Poot
bb3f0c0b4a
Added TransIP provider and tests
2019-09-25 07:01:06 +02:00