[sdk] issue in update image method

Artem Goncharov artem.goncharov at gmail.com
Wed Nov 18 19:06:21 UTC 2020


Hi Roman,

Can you please include some code you use to invoke the mentioned function?

I assume you might be calling it in the context that we were not expecting.

Thanks,
Artem

----
typed from mobile, auto-correct typos assumed
----

On Wed, 18 Nov 2020, 19:55 Roman Budnyk, <r.m.budnik at gmail.com> wrote:

> 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/65a4658c/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/65a4658c/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/65a4658c/attachment-0003.png>


More information about the openstack-discuss mailing list