Command openstack volume snapshot create does not correctly return help

Bug #1659894 reported by Anne Gentle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Low
aohuanxuan

Bug Description

On python-openstackclient 3.3.0, with credentials sourced, I get an error:

'NoneType' object has no attribute 'isdigit'

When typing openstack volume snapshot create.

I can get help from openstack volume snapshot create --help.

Revision history for this message
Steve Martinelli (stevemar) wrote :

Hmm, this may be fixed in 3.8.0... care to try that version?

In version 3.3.0 we only had "openstack snapshot create" (minus the volume) [1]

[1] https://github.com/openstack/python-openstackclient/blob/3.3.0/setup.cfg#L450

In newer versions we deprecated that and added the "volume" keyword [2]

[2] https://github.com/openstack/python-openstackclient/blob/master/setup.cfg#L497-L502

Revision history for this message
Dean Troyer (dtroyer) wrote :

This is still present in 3.8.1.

 $ os volume snapshot create
 'NoneType' object has no attribute 'isdigit'
 $ os --version
 openstack 3.8.1

Changed in python-openstackclient:
status: New → Confirmed
importance: Undecided → Low
aohuanxuan (huanxuan-ao)
Changed in python-openstackclient:
assignee: nobody → aohuanxuan (huanxuan-ao)
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/440497

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

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

commit 1c49a1f01da73b8eed701809de88b408e738dfed
Author: Huanxuan Ao <email address hidden>
Date: Wed Mar 8 10:01:16 2017 +0800

    Fix NoneType error for volume snapshot create command

    In volume snapshot command, <volume> is the same
    as <snapshot-name> when --volume is not specified,
    but <volume> cannot be None, so when <snapshot-name>
    is not specified (<snapshot-name> is None), a NoneType
    error appears.
    So make <snapshot-name> no longer optional, it should
    be always present.

    Change-Id: I3d9f10753a8ef601e70816421c160598e2cc811f
    Closes-bug: #1659894

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.10.0

This issue was fixed in the openstack/python-openstackclient 3.10.0 release.

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.