X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=getconf.py;fp=getconf.py;h=56cf1b834f7100d48981b1bbe576181b47bc0aaa;hb=c51ad794e8dc07072d705b508e79ba06849aa408;hp=155c26ff3b85bb9ca1292b55b609313f93cdcfd0;hpb=bccc542ed6a8eec74fd6411976cca424a1158c75;p=monitor.git diff --git a/getconf.py b/getconf.py index 155c26f..56cf1b8 100755 --- a/getconf.py +++ b/getconf.py @@ -1,12 +1,11 @@ #!/usr/bin/python -import auth import plc +api = plc.getAuthAPI() import sys import os def getconf(hostname, force=False, media=None): - api = plc.PLC(auth.auth, auth.plc) n = api.GetNodes(hostname) filename = "bootcd/" + hostname + ".txt" if not os.path.exists(filename) or force: