summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-10 03:40:52 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-10 03:40:52 -0400
commit42cdca3e8340c9aae721d582a522b7991ea38050 (patch)
tree00a1c0e565fbdc55f238c6666ffd96c002fc19c6
parentdbe49423ab16ed9ad01166feee22b68b7b05c725 (diff)
downloadfreeipa.git-42cdca3e8340c9aae721d582a522b7991ea38050.tar.gz
freeipa.git-42cdca3e8340c9aae721d582a522b7991ea38050.tar.xz
freeipa.git-42cdca3e8340c9aae721d582a522b7991ea38050.zip
Use new options handler
-rw-r--r--ipalib/plugins/f_service.py9
1 files changed, 2 insertions, 7 deletions
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