Use new options handler

This commit is contained in:
Rob Crittenden 2008-10-10 03:40:52 -04:00
parent dbe49423ab
commit 42cdca3e83

View File

@ -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