libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] Kami commented on issue #1419: ec2 driver does not support strings for size and image parameters
Date Wed, 29 Jan 2020 13:11:39 GMT
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

Mime
View raw message