summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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