From a0572d592f5b46494358c1c8de00ec0c12d190dd Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 26 Mar 2008 00:39:51 +0000 Subject: [PATCH] simplify --- qaapi/qa/tests/sync_person_key.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 -- 2.43.0