diff options
author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2015-05-08 18:12:06 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2015-05-08 16:34:02 -0400 |
commit | 485baf6ee7a315d1af1086fe5b5da8cff6c4ba37 (patch) | |
tree | 80620b1ccf7bcfa052122559a9dddab638420bf4 /ipsilon/helpers | |
parent | 9b7f9756d89f0a7908d9b7323f682f34b37d200e (diff) | |
download | ipsilon.git-485baf6ee7a315d1af1086fe5b5da8cff6c4ba37.tar.gz ipsilon.git-485baf6ee7a315d1af1086fe5b5da8cff6c4ba37.tar.xz ipsilon.git-485baf6ee7a315d1af1086fe5b5da8cff6c4ba37.zip |
Implement change registration
This will make it possible for plugins to register what they
have changed during installation, so that they can revert
any changes they made during the uninstallation.
https://fedorahosted.org/ipsilon/ticket/67
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
Diffstat (limited to 'ipsilon/helpers')
-rw-r--r-- | ipsilon/helpers/common.py | 4 | ||||
-rw-r--r-- | ipsilon/helpers/ipa.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ipsilon/helpers/common.py b/ipsilon/helpers/common.py index d3f7125..bdaa82f 100644 --- a/ipsilon/helpers/common.py +++ b/ipsilon/helpers/common.py @@ -12,7 +12,7 @@ class EnvHelpersInstaller(object): self.ptype = 'helper' self.name = None - def unconfigure(self, opts): + def unconfigure(self, opts, changes): return def install_args(self, group): @@ -21,7 +21,7 @@ class EnvHelpersInstaller(object): def validate_args(self, args): return - def configure_server(self, opts): + def configure_server(self, opts, changes): raise NotImplementedError diff --git a/ipsilon/helpers/ipa.py b/ipsilon/helpers/ipa.py index a785edb..9c786f9 100644 --- a/ipsilon/helpers/ipa.py +++ b/ipsilon/helpers/ipa.py @@ -163,7 +163,7 @@ class Installer(EnvHelpersInstaller): pw = pwd.getpwnam(HTTPD_USER) os.chown(opts['gssapi_httpd_keytab'], pw.pw_uid, pw.pw_gid) - def configure_server(self, opts): + def configure_server(self, opts, changes): if opts['ipa'] != 'yes' and opts['ipa'] != 'auto': return if opts['ipa'] != 'yes' and opts['gssapi'] == 'no': |