git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed 'import auth' statements to use plc.py or monitorconfig.py
[monitor.git]
/
getconf.py
diff --git
a/getconf.py
b/getconf.py
index
155c26f
..
56cf1b8
100755
(executable)
--- a/
getconf.py
+++ b/
getconf.py
@@
-1,12
+1,11
@@
#!/usr/bin/python
#!/usr/bin/python
-import auth
import plc
import plc
+api = plc.getAuthAPI()
import sys
import os
def getconf(hostname, force=False, media=None):
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:
n = api.GetNodes(hostname)
filename = "bootcd/" + hostname + ".txt"
if not os.path.exists(filename) or force: