profile/profile-type-show with not supported format returns attributeError

Bug #1523373 reported by Ethan Lynn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-senlinclient
Fix Released
High
Ethan Lynn

Bug Description

senlin policy-type-show -F aa senlin.policy.health returns an error

Traceback (most recent call last):
  File "/usr/bin/senlin", line 10, in <module>
    sys.exit(main())
  File "/opt/stack/python-senlinclient/senlinclient/shell.py", line 308, in main
    SenlinShell().main(args)
  File "/opt/stack/python-senlinclient/senlinclient/shell.py", line 294, in main
    args.func(sc, args)
  File "/opt/stack/python-senlinclient/senlinclient/v1/shell.py", line 239, in do_policy_type_show
    print(utils.format_output(pt, format=args.format))
  File "/opt/stack/python-senlinclient/senlinclient/common/utils.py", line 184, in format_output
    raise exc.HTTPUnsupported(_('The format(%s) is unsupported.')
AttributeError: 'module' object has no attribute 'HTTPUnsupported'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-senlinclient (master)

Reviewed: https://review.openstack.org/254069
Committed: https://git.openstack.org/cgit/openstack/python-senlinclient/commit/?id=dd0f6974a2d7da22831ee9bdd7addde715c10091
Submitter: Jenkins
Branch: master

commit dd0f6974a2d7da22831ee9bdd7addde715c10091
Author: Ethan Lynn <email address hidden>
Date: Tue Dec 8 00:49:17 2015 +0800

    Add choices to -F argument

    Add choices to -F argument

    Closes-Bug: #1523373
    Change-Id: Ic51004d0afd910d432e18920ad2ee62426b04f5e

Changed in python-senlinclient:
status: New → Fix Committed
Qiming Teng (tengqim)
Changed in python-senlinclient:
importance: Undecided → High
assignee: nobody → Ethan Lynn (ethanlynn)
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.