From 11266d039f6c59be1bf8ce888972d012ce49ddf6 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 22 Jan 2008 11:58:06 +0000 Subject: Re-factor the ipa_webgui and ipa_kpasswd instance code The ipa_webgui and ipa_kpasswd instance code is identical and I want to add another similar instance down the line, so re-factor the code into a service.SimpleServiceInstance class. Signed-off-by: Mark McLoughlin --- ipa-server/ipaserver/httpinstance.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipa-server/ipaserver/httpinstance.py') diff --git a/ipa-server/ipaserver/httpinstance.py b/ipa-server/ipaserver/httpinstance.py index 8577a25b..12e5ae10 100644 --- a/ipa-server/ipaserver/httpinstance.py +++ b/ipa-server/ipaserver/httpinstance.py @@ -47,6 +47,10 @@ successfully change with the command: Try updating the policycoreutils and selinux-policy packages. """ +class WebGuiInstance(service.SimpleServiceInstance): + def __init__(self): + service.SimpleServiceInstance.__init__(self, "ipa_webgui") + class HTTPInstance(service.Service): def __init__(self): service.Service.__init__(self, "httpd") -- cgit