v3 endpoint set command always need service option

Bug #1351121 reported by wanghong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
wanghong

Bug Description

This is a bug, I can not only set other property. For example:
openstack endpoint set fe210c4ab6a74ab7978c3b900eb64f70 --region xx --os-identity-api-version 3 --debug --os-token admin --os-url http://127.0.0.1:35357/v3/

ERROR: openstackclient.shell Traceback (most recent call last):
  File "/opt/stack/python-openstackclient/openstackclient/shell.py", line 173, in run
    return super(OpenStackShell, self).run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 217, in run
    result = self.run_subcommand(remainder)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 282, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/command.py", line 50, in run
    self.take_action(parsed_args)
  File "/opt/stack/python-openstackclient/openstackclient/identity/v3/endpoint.py", line 184, in take_action
    service = common.find_service(identity_client, parsed_args.service)
  File "/opt/stack/python-openstackclient/openstackclient/identity/common.py", line 29, in find_service
    return utils.find_resource(identity_client.services, name_type_or_id)
  File "/opt/stack/python-openstackclient/openstackclient/common/utils.py", line 33, in find_resource
    if isinstance(name_or_id, int) or name_or_id.isdigit():
AttributeError: 'NoneType' object has no attribute 'isdigit'

wanghong (w-wanghong)
Changed in python-openstackclient:
assignee: nobody → wanghong (w-wanghong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/111137

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/111137
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=a9fb5fa102560d389a8a9f76ed572f1c4fc9944b
Submitter: Jenkins
Branch: master

commit a9fb5fa102560d389a8a9f76ed572f1c4fc9944b
Author: wanghong <email address hidden>
Date: Tue Jul 29 15:33:18 2014 +0800

    v3 endpoint set shouldn't always need service option

    Change-Id: I71aab1ee4f467dc963e7afa7fc1c82b4255ea822
    Closes-Bug: #1351121

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
Changed in python-openstackclient:
milestone: none → m5
Dean Troyer (dtroyer)
Changed in python-openstackclient:
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.