cloudmesh / cloudmesh-cloud

Multicloud Cloudmesh Plugins for cloudmesh cmd5 CMD
https://cloudmesh.github.io/cloudmesh-manual
Apache License 2.0
2 stars 27 forks source link

AWS: flavors broken #307

Closed laszewsk closed 4 years ago

laszewsk commented 4 years ago

The AwsFlavors has no update function

def flavor(self, name=None):

    """
    Gets the flavor with a given name
    :param name: The name of the flavor
    :return: The dict of the flavor
    """
    flavors = AwsFlavor()
    flavors.update()
    for flavor in flavors.get():
        if flavor['name'] == name:
            return [flavor]
    return []