#1308 Internal error while removing sudorule option without "--sudooption"
Closed: Fixed None Opened 11 years ago by rcritten.

https://bugzilla.redhat.com/show_bug.cgi?id=711761

# ipa sudorule-add-option sudorule3
Sudo Option:

# ipa sudorule-remove-option sudorule3
ipa: ERROR: an internal error has occurred

Should prompt for "Sudo Option:" to be removed.

/var/log/httpd/error_log:
[Wed Jun 08 08:23:16 2011] [error] ipa: ERROR: non-public: KeyError:
'ipasudoopt'
[Wed Jun 08 08:23:16 2011] [error] Traceback (most recent call last):
[Wed Jun 08 08:23:16 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 217, in
wsgi_execute
[Wed Jun 08 08:23:16 2011] [error]     result = self.Command[name](*args,
**options)
[Wed Jun 08 08:23:16 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 422, in __call__
[Wed Jun 08 08:23:16 2011] [error]     ret = self.run(*args, **options)
[Wed Jun 08 08:23:16 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 728, in run
[Wed Jun 08 08:23:16 2011] [error]     return self.execute(*args, **options)
[Wed Jun 08 08:23:16 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/sudorule.py", line 653, in
execute
[Wed Jun 08 08:23:16 2011] [error]     options['ipasudoopt']
[Wed Jun 08 08:23:16 2011] [error] KeyError: 'ipasudoopt'
[Wed Jun 08 08:23:16 2011] [error] ipa: INFO: admin@LAB.ENG.PNQ.REDHAT.COM:
sudorule_remove_option(u'sudorule3'): KeyError

Metadata Update from @rcritten:
- Issue assigned to jraquino
- Issue set to the milestone: FreeIPA 2.1 - 2011/07

5 years ago

Login to comment on this ticket.

Metadata