refresh nodes hrns at startup
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 12 Mar 2010 14:20:24 +0000 (14:20 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 12 Mar 2010 14:20:24 +0000 (14:20 +0000)
db-config.d/099-hrns [new file with mode: 0644]

diff --git a/db-config.d/099-hrns b/db-config.d/099-hrns
new file mode 100644 (file)
index 0000000..f55cd74
--- /dev/null
@@ -0,0 +1,8 @@
+# -*-python-*-
+# $Id$
+# $URL$
+#################### 
+# quick and dirty, make sure all hrns are set on local nodes
+# could/should get trashed somedy
+
+for node in GetNodes({'peer_id':None}): UpdateNode(node['node_id'],{'hostname':node['hostname']})