git://git.onelab.eu
/
tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f125f
)
simplify
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 26 Mar 2008 00:39:51 +0000
(
00:39
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 26 Mar 2008 00:39:51 +0000
(
00:39
+0000)
qaapi/qa/tests/sync_person_key.py
patch
|
blob
|
history
diff --git
a/qaapi/qa/tests/sync_person_key.py
b/qaapi/qa/tests/sync_person_key.py
index
2276bb8
..
54099ec
100755
(executable)
--- a/
qaapi/qa/tests/sync_person_key.py
+++ b/
qaapi/qa/tests/sync_person_key.py
@@
-18,9
+18,13
@@
class sync_person_key(Test):
command = "ssh-keygen -f %(key_path)s -t rsa -N ''" % locals()
(stdout, stderr) = utils.popen(command)
- def call(self, email):
- api = self.config.api
- auth = self.config.auth
+ def call(self, email, plc_name = None):
+
+ # Determine which plc to talk to
+ plc = self.config.get_plc(plc_name)
+ api = plc.config.api
+ auth = plc.config.auth
+
email_parts = email.split("@")
keys_filename = email_parts[0]
keys_path = self.config.KEYS_PATH