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:
[email protected]


With regards,
Apache Git Services

Reply via email to