mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
Use new options handler
This commit is contained in:
parent
dbe49423ab
commit
42cdca3e83
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user