You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2020/01/29 13:11:39 UTC

[GitHub] [libcloud] Kami commented on issue #1419: ec2 driver does not support strings for size and image parameters

Kami commented on issue #1419: ec2 driver does not support strings for size and image parameters
URL: https://github.com/apache/libcloud/issues/1419#issuecomment-579748574
 
 
   Thanks for reporting this.
   
   This works as designed / intended. Base compute API declares those arguments to be of a type of NodeImage and NodeSize.
   
   If any of the drivers supports string notation, that's because they don't comply with the base compute API.
   
   In the past, we didn't have a good automated way to enforce compliance with the base API so some things like that have slipped through, but going forward, some of that will be easier with the MyPy support.
   
   In short, in scenarios like that, you need to instantiate ``NodeImage`` and ``NodeSize`` classes yourself manually (although some drivers may offer convenience extension methods for that).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services