can't update image property with dict value

Bug #1654212 reported by suzhengwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Invalid
Undecided
Unassigned

Bug Description

Fail to update an image's property with dict value which has more than one key-values.
Cli like this:
#glance image-update --property property_xxx={key1:value, key2:value2} $image_id
But it works only one key-value pair.

I'm not sure it is a problem. How to update an image's property with dict value which has more than one key-values pairs?

glanceclient version:2.0.0

suzhengwei (sue.sam)
description: updated
Changed in python-glanceclient:
status: New → Invalid
suzhengwei (sue.sam)
description: updated
description: updated
Changed in python-glanceclient:
status: Invalid → New
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

The issue is with your shell usage.

When you write:

glance image-update --property property_xxx={key1:value, key2:value2} $id

$id is an extra argument, and "key2:value2}" is actually the image id.

You should write:

glance image-update --property property_xxx="{key1:value, key2:value2}" $id

This bug seems invalid to me.

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