git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6e9123c
)
instructs user how to create the 'auth.py' file.
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Fri, 11 Apr 2008 21:02:53 +0000
(21:02 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Fri, 11 Apr 2008 21:02:53 +0000
(21:02 +0000)
keys/setup.py
patch
|
blob
|
history
diff --git
a/keys/setup.py
b/keys/setup.py
index
fd04125
..
8900bf9
100644
(file)
--- a/
keys/setup.py
+++ b/
keys/setup.py
@@
-7,10
+7,23
@@
# privilges in order to setup an ssh key, add a user, and upload the key to
# the user, make the user a member of the PLC site, etc.
# privilges in order to setup an ssh key, add a user, and upload the key to
# the user, make the user a member of the PLC site, etc.
-import auth
-import plc
import sys
import os
import sys
import os
+try:
+ import auth
+except:
+ print """
+ Create a file named: 'auth.py' which contains two variables:
+
+plc = "https://yourplc.hostname.org/PLCAPI/"
+auth = {'Username': 'root@localhost.localdomain',
+ 'AuthMethod': 'password',
+ 'AuthString': 'root'}
+
+"""
+ sys.exit(1)
+
+import plc
def filevalue(filename):
f = open(filename, 'r')
def filevalue(filename):
f = open(filename, 'r')