is_public must be "True" - mismatch with docs

Bug #756886 reported by justinsb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Jay Pipes

Bug Description

The docs here say that for x-image-meta-is-public, “on, 1, true” are all true values:
http://glance.openstack.org/glanceapi.html

However, the code only accepts 'True':
def get_image_meta_from_headers(response):
...
    if 'is_public' in result:
        result['is_public'] = (result['is_public'] == 'True')

Related branches

Revision history for this message
Jay Pipes (jaypipes) wrote :

Damn you for actually reading our docs, Justin ;)

Changed in glance:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Jay Pipes (jaypipes)
milestone: none → cactus-rc
Jay Pipes (jaypipes)
Changed in glance:
status: Triaged → In Progress
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: cactus-rc → 2011.2
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.