From e39fe4ed31042bd28357d093fdbd93b4d6d59aaa Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Mon, 22 Jun 2015 10:58:43 +0000 Subject: plugable: Pass API to plugins on initialization rather than using set_api https://fedorahosted.org/freeipa/ticket/3090 Reviewed-By: Martin Babinsky --- ipaserver/plugins/rabase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipaserver/plugins/rabase.py') diff --git a/ipaserver/plugins/rabase.py b/ipaserver/plugins/rabase.py index cf4426235..fae30ff2f 100644 --- a/ipaserver/plugins/rabase.py +++ b/ipaserver/plugins/rabase.py @@ -41,14 +41,14 @@ class rabase(Backend): """ Request Authority backend plugin. """ - def __init__(self): + def __init__(self, api): if api.env.in_tree: self.sec_dir = api.env.dot_ipa + os.sep + 'alias' self.pwd_file = self.sec_dir + os.sep + '.pwd' else: self.sec_dir = paths.HTTPD_ALIAS_DIR self.pwd_file = paths.ALIAS_PWDFILE_TXT - super(rabase, self).__init__() + super(rabase, self).__init__(api) def check_request_status(self, request_id): -- cgit