there is useless 'u' in the error info of "glance image-update"

Bug #1534040 reported by hgangwx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Undecided
Jaspreet Singh Rawel

Bug Description

[Summary]
there is useless 'u' in the error info of "glance image-update"

[Topo]
devstack all-in-one node

[Description and expect result]
no useless 'u' in the error info of "glance image-update"

[Reproduceable or not]
reproduceable

[Recreate Steps]
1) there is useless 'u' in the error info of "glance image-update":
root@45-59:/opt/stack/devstack# glance image-update --visibility
false d362e24d-3d77-42ea-96ae-d1a1721e7d41
Unable to set 'visibility' to 'false'. Reason: u'false' is not one
of [u'public', u'private']

Failed validating u'enum' in schema[u'properties'][u'visibility']:
    {u'description': u'Scope of image accessibility',
     u'enum': [u'public', u'private'],
     u'type': u'string'}

On instance[u'visibility']:
    u'false'
root@45-59:/opt/stack/devstack#

[Configration]
reproduceable bug, no need

[logs]
reproduceable bug, no need

[Root cause anlyze or debug inf]
reproduceable bug

[Attachment]
None

linwei,wu (wlwwu)
Changed in python-glanceclient:
assignee: nobody → linwei,wu (wlwwu)
Changed in python-glanceclient:
assignee: linwei,wu (wlwwu) → Jaspreet Singh Rawel (jaspreetsinghrawel)
Revision history for this message
Jaspreet Singh Rawel (jaspreetsinghrawel) wrote :

root@controller:/home/ubuntu# glance image-update --visibility false a109d73c-331f-4b30-b2f0-36cda7875560
Unable to set 'visibility' to 'false'. Reason: u'false' is not one of [u'public', u'private']

Failed validating u'enum' in schema[u'properties'][u'visibility']:
    {u'description': u'Scope of image accessibility',
     u'enum': [u'public', u'private'],
     u'type': u'string'}

On instance[u'visibility']:
    u'false'
root@controller:/home/ubuntu#

Changed in python-glanceclient:
status: New → Confirmed
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

I believe this bug was fixed at some point:

$ glance image-update --visibility false 2e969bfd-8fdc-4b0d-b328-d2332da54ab8
Unable to set 'visibility' to 'false'. Reason: 'false' is not one of ['community', 'public', 'private', 'shared']

Failed validating 'enum' in schema['properties']['visibility']:
    {'description': 'Scope of image accessibility',
     'enum': ['community', 'public', 'private', 'shared'],
     'type': 'string'}

On instance['visibility']:
    'false'

Changed in python-glanceclient:
status: Confirmed → 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.