From 101022e3bf4dfe3f0c56ffb61abbf358a3b1ab26 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 Reviewed-by: Patrick Uiterwijk --- ipsilon/info/common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipsilon/info') diff --git a/ipsilon/info/common.py b/ipsilon/info/common.py index 725f0fa..dd48ae9 100644 --- a/ipsilon/info/common.py +++ b/ipsilon/info/common.py @@ -94,6 +94,9 @@ class InfoProviderInstaller(object): def install_args(self, group): raise NotImplementedError + def validate_args(self, args): + return + def unconfigure(self, opts): return -- cgit