summaryrefslogtreecommitdiffstats
path: root/ipsilon/helpers/common.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2015-03-26 14:55:27 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2015-03-27 19:46:52 +0100
commit101022e3bf4dfe3f0c56ffb61abbf358a3b1ab26 (patch)
treeb0a78aab69144734c0d38c69188beffd61603aa6 /ipsilon/helpers/common.py
parent83ac397cd5904cbbaa5a21adcac73815dda9fa63 (diff)
downloadipsilon-101022e3bf4dfe3f0c56ffb61abbf358a3b1ab26.tar.gz
ipsilon-101022e3bf4dfe3f0c56ffb61abbf358a3b1ab26.tar.xz
ipsilon-101022e3bf4dfe3f0c56ffb61abbf358a3b1ab26.zip
Add a method to Installer classes to validate argument input
There was no way to validate argument input from plugins and cause the installer to bail out. If a plugin needs to validate some input it can use the validate_args() method and raise ConfigurationError() if an issue is found. https://fedorahosted.org/ipsilon/ticket/78 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/helpers/common.py')
-rw-r--r--ipsilon/helpers/common.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipsilon/helpers/common.py b/ipsilon/helpers/common.py
index dcbde2b..8eff274 100644
--- a/ipsilon/helpers/common.py
+++ b/ipsilon/helpers/common.py
@@ -33,6 +33,9 @@ class EnvHelpersInstaller(object):
def install_args(self, group):
raise NotImplementedError
+ def validate_args(self, args):
+ return
+
def configure_server(self, opts):
raise NotImplementedError