From: Tony Mack Date: Wed, 26 Mar 2008 00:39:51 +0000 (+0000) Subject: simplify X-Git-Tag: tests-4.2-4~153 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a0572d592f5b46494358c1c8de00ec0c12d190dd;p=tests.git simplify --- diff --git a/qaapi/qa/tests/sync_person_key.py b/qaapi/qa/tests/sync_person_key.py index 2276bb8..54099ec 100755 --- 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