tweaks to improve the automated, rpm installation of monitor-server.
[monitor.git] / testapi.py
index 5e7daa8..4876fe6 100755 (executable)
@@ -5,10 +5,10 @@ import sys
 import traceback
 
 api = plc.getAuthAPI()
-loginbase = sys.argv[1] # "princeton"
 
 try:
-       site = api.GetSites(loginbase)[0]
+       # Just try the first site returned by the call
+       site = api.GetSites()[0]
        site_nodes = api.GetNodes(site['node_ids'])
        site_people = api.GetPersons(site['person_ids'])
        for node in site_nodes: