codehaus


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

[sdk] issue in update image method


Hello Artem,

Thanks for the reply.
Actually, I am doing nothing special. Calling the method from the client
instance and passing there image name (or id):
[image: image.png]
after analyzing sdk code I came to the understanding that the
update_image_properties method should work as with string representation of
name (id) of the image or with the instance of the image class (not sure of
it's name, but it does not matter here, can be received from
the get_image() method.

Please let me know if I can give you any additional information on this.
Appreciate your help.

Ñ?Ñ?, 18 лиÑ?Ñ?. 2020 о 21:06 Artem Goncharov <artem.goncharov at gmail.com> пиÑ?е:

> 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/54bf7cb7/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/54bf7cb7/attachment-0003.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/54bf7cb7/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 20322 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20201118/54bf7cb7/attachment-0005.png>