From 42cdca3e8340c9aae721d582a522b7991ea38050 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 10 Oct 2008 03:40:52 -0400 Subject: Use new options handler --- ipalib/plugins/f_service.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'ipalib/plugins/f_service.py') diff --git a/ipalib/plugins/f_service.py b/ipalib/plugins/f_service.py index 0db1171c..baed5233 100644 --- a/ipalib/plugins/f_service.py +++ b/ipalib/plugins/f_service.py @@ -43,14 +43,9 @@ api.register(service) class service_add(crud.Add): 'Add a new service.' - """ - my_params = ( - Param('force', type=ipa_types.Bool(), default=False), + takes_options = ( + Param('force?', type=ipa_types.Bool(), default=False, doc='Force a service principal name'), ) - def get_options(self): - for param in self.my_params: - yield param - """ def execute(self, *args, **kw): """args[0] = service principal to add kw{force} determines whether we continue on errors -- cgit