Closed eLvErDe closed 4 years ago
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
ok to test
Thanks for this awesome PR! I hope you don't mind but I fixed a small lint issue and force pushed back to your branch to get some of the tests to pass (the others will still fail).
I don't know what you changed, can you point me to the difference ? I've deployed my own patch in prod so if there's a potential bug I'd be happy to know :D
No bug, just a silly strict linter:
diff --git a/marathon_lb.py b/marathon_lb.py
index e875e7f703f4..c822eb6814c5 100755
--- a/marathon_lb.py
+++ b/marathon_lb.py
@@ -1509,9 +1509,9 @@ def compareWriteAndReloadConfig(config, config_file, domain_map_array,
"running config is different from generated config"
" - reloading")
for hunk in difflib.unified_diff(
- runningConfig.splitlines(),
- config.splitlines()
- ):
+ runningConfig.splitlines(),
+ config.splitlines()
+ ):
logger.info(hunk)
if writeConfigAndValidate(
config, config_file, domain_map_string, domain_map_file,
Oh ok. I noticed the style was somehow very different to mine so I just tried to match what was there. I'm using Black with line-length 160 so... ;)
Will generate nice log like this:
Which is very helpful for auditing and debugging !