pki-server subsystem-enable should display proper error message when ran with invalid subsystem type
Steps to Reproduce:
run pki-server subsystem-enable command with invalid subsystem type
Actual results:
[root@pki1 ca]# pki-server subsystem-enable -i pki-tomcat csdffd Traceback (most recent call last): File "/usr/sbin/pki-server", line 112, in <module> cli.execute(sys.argv) File "/usr/sbin/pki-server", line 104, in execute super(PKIServerCLI, self).execute(args) File "/usr/lib/python2.7/site-packages/pki/cli/__init__.py", line 203, in execute module.execute(module_args) File "/usr/lib/python2.7/site-packages/pki/cli/__init__.py", line 203, in execute module.execute(module_args) File "/usr/lib/python2.7/site-packages/pki/server/cli/subsystem.py", line 243, in execute subsystem.enable() AttributeError: 'NoneType' object has no attribute 'enable'
Expected results:
It should throw a proper error stating invalid subsystem type
This is already fixed in ticket #2399.
Metadata Update from @myusuf@redhat.com: - Issue set to the milestone: 10.3.5
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/2530
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.