codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: [sdk] issue in update image method


Hello dear developers,

I was trying to update image data by calling method *update_image_properties.
*Each time I was facing the error: TypeError: existing() argument after **
must be a mapping, not str

I did small research in the source code and found a strange solution.
Could you please check this place in the code:
class BaseImageProxy, method update_image_properties (path
/openstack/_base_proxy.py):

[image: image.png]
When I changed it to the below - everything works (with name, id or image
instance):
[image: image.png]
could you please check on your end, why the construction *if image is None *is
using and how can we execute the code *self._connection.get_image(image) *if
None is passing as the argument.

Many thanks!
Regards,
Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20201118/eab1fb45/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 25115 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20201118/eab1fb45/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 23505 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20201118/eab1fb45/attachment-0003.png>