From ccebc50ef09b9e59a7972222f9e005d6517d6f2a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 26 Mar 2015 14:55:27 -0400 Subject: 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 --- ipsilon/helpers/common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipsilon/helpers') 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 -- cgit