This commit changes the 'soltesz.py' module into 'moncommands.py' and
[monitor.git] / getnodes.py
index 60dad7c..2116fe5 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-import soltesz
+import database
 import plc
 from optparse import OptionParser
 import sys
@@ -27,7 +27,7 @@ if not config.run:
        print "Add --run to actually perform the command"
        sys.exit(1)
 
-nodelist = soltesz.if_cached_else_refresh(1, 
+nodelist = database.if_cached_else_refresh(1, 
                                                        config.refresh, 
                                                        "l_plcnodes", 
                                                        lambda : plc.getNodes({'peer_id':None}, ['hostname']))