Ross McFarland
abb80e509d
Remove old non-actionable TODO
2023-07-29 17:48:26 -07:00
Nathan Tat
1515fd186f
Add zone name to TooMuchChange during plan
2023-06-22 14:32:03 -07:00
Ross McFarland
98f51db028
updated black formatting
2023-05-23 10:27:23 -07:00
Ross McFarland
6be0a8133a
isort import formatting
2023-01-22 13:54:19 -08:00
Ross McFarland
a1e54c2bbf
Remove hacky _LogLevelSetter and just setLevel on Plan logger
2022-09-29 14:27:05 -07:00
Ross McFarland
3967c273f8
--debug flag to commands, work-around to ensure PlanLogger plan always prints
2022-09-27 08:06:30 -07:00
Ross McFarland
66debc0b80
Use super() now that we require python3, less error prone
2022-09-15 14:25:47 -07:00
Ross McFarland
d7880c084d
Remove from __futures__ bits, all are now manditory
2022-09-15 14:10:21 -07:00
Ross McFarland
b4792707f8
Merge remote-tracking branch 'origin/main' into idna-internally
2022-09-12 14:56:01 -07:00
Ross McFarland
fa4225b625
Fix lots of errant '...' '...' string joins
2022-09-06 12:47:47 -07:00
Ross McFarland
c1ef45e0fd
Convert Manager.config['zones'] to IdnaDict
...
- print Zone.decoded_name to logs for better readability
- Prefer decoded name in YamlProvider
2022-08-17 10:29:32 -07:00
Ross McFarland
e116d26eec
Implement black formatting
2022-07-04 12:27:39 -07:00
Ross McFarland
8e70695eb2
Apply suggestions/corrections from a round of code review
2022-02-23 09:32:20 -08:00
Ross McFarland
81dd4d714b
Only throw RootNsChange UnsafePlan on existing zones
2022-02-17 09:34:48 -08:00
Ross McFarland
38b51fb456
Rework unsafe bits, add RootNsChange as a new type of unsafe plan
2022-02-16 14:24:10 -08:00
Ross McFarland
aae65594f2
Remove explicit use of six
2021-09-17 07:10:07 -07:00
Ross McFarland
fe66582edf
f-strings for Plan
2021-09-04 18:47:19 -07:00
Ricard Bejarano
3f3d500152
fixed missing whitespace in plan() debug logging
...
When debug logging is enabled, the plan() function logs lines like:
<previous output>
Plan: DEBUG: __init__: Creates=13, Updates=0, Deletes=0Existing=0
<following output>
Where a space between "Deletes=0" and "Existing=0" is missing.
This adds it.
2021-04-26 19:06:29 +02:00
Ross McFarland
7867ad2093
Use six's StringIO, remove compat.py
2019-10-07 09:40:23 -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
9e4c120c3e
StringIO compat
2019-07-29 08:44:35 -07:00
Ross McFarland
a9d0eef3ba
Lots of text_type
2019-07-29 08:37:47 -07:00
cclauss
158add8eb6
Modernize Python 2 code to prepare for Python 3
2019-07-12 02:11:43 +02:00
Ross McFarland
7228c5b294
Merge remote-tracking branch 'origin/master' into show-zone-create
2018-03-03 10:18:32 -08:00
Ross McFarland
9f2b65ec83
Change str() to unicode() to avoid encoding problems
2018-02-24 09:19:23 -08:00
Sergei Shmanko
29bc1f3af3
fix logging for update/delete_pcent_threshold
2018-02-22 12:32:12 +02:00
Ross McFarland
73c002f94c
Implement populate exists for Route53Provider
2018-01-21 14:26:51 -08:00
Ross McFarland
94bfb1e507
Switch populate to return exists, cleaner setup
2018-01-21 14:06:20 -08:00
Ross McFarland
1e71bce907
Add create param to Plan
2018-01-21 13:47:58 -08:00
Ross McFarland
ad1d0f0fe8
Fixes and unit tests for new plan output functionality
2018-01-06 16:26:48 -08:00
Ross McFarland
ddf53b7a47
No changes bold, not h2
2018-01-06 07:50:23 -08:00
Ross McFarland
106f59fe6c
No table border
2017-12-02 16:00:00 -08:00
Ross McFarland
e092afda17
Add PlanHtml
2017-12-02 15:58:47 -08:00
Ross McFarland
aa20b3388f
plan _value_stringifier
2017-12-02 15:39:29 -08:00
Ross McFarland
7d83ae84c7
Rework markdown table to use 2-rows for updates, 1 for create/delete
2017-12-02 15:21:28 -08:00
Ross McFarland
402bc2092e
WIP: markdown plan_output support
...
Mostly works, but doesn't yet dump out the values
2017-12-02 12:35:18 -08:00
Ross McFarland
3d0f5aeca0
Config-based plan_output
...
Refactors the provider class lookup and kwarg processing so that it can be
reused for plan_output.
2017-12-02 11:40:55 -08:00
Ross McFarland
31e6f99df6
Manager.plan_outputs
2017-12-02 10:37:19 -08:00
Ross McFarland
b72fba3e35
Move the log plan output to PlanLogger
2017-12-02 10:34:32 -08:00
Ross McFarland
f50d9b6087
Extract plan from base.py into plan.py
2017-12-02 10:31:59 -08:00