[omd-commits] OMD Git: omd: Cleanup: Call hooks during create/ update in deterministic order

git version control git at mathias-kettner.de
Thu May 19 17:36:41 CEST 2016


Module:   omd
Branch:   master
Commit:   ae30e82c065b5486dc07b5a3f9482036bb452e16
URL:      http://omdistro.org/projects/omd/repository/revisions/ae30e82c065b5486dc07b5a3f9482036bb452e16

Author:   Lars Michelsen <lm at larsmichelsen.com>
Date:     Thu May 19 17:36:32 2016 +0200
Commiter: Lars Michelsen <lm at larsmichelsen.com>
Date:     Thu May 19 17:36:32 2016 +0200

Cleanup: Call hooks during create/update in deterministic order

---

 packages/omd/omd |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/omd/omd b/packages/omd/omd
index 7ec7e42..0d12007 100644
--- a/packages/omd/omd
+++ b/packages/omd/omd
@@ -1926,7 +1926,7 @@ def config_set(args):
 
 
 def config_set_all():
-    for hook_name, value in g_site_conf.items():
+    for hook_name, value in sorted(g_site_conf.items(), key=lambda x: x[0]):
         # Hooks might vanish after and up- or downdate
         if hook_exists(hook_name):
             exitcode, output = call_hook(hook_name, [ "set", value ])



More information about the omd-commits mailing list