diff --git a/openstack/cloud/_compute.py b/openstack/cloud/_compute.py index 069595053..4501e3abe 100644 --- a/openstack/cloud/_compute.py +++ b/openstack/cloud/_compute.py @@ -1384,6 +1384,7 @@ class ComputeCloudMixin: ram, vcpus, disk, + description=None, flavorid="auto", ephemeral=0, swap=0, @@ -1396,6 +1397,7 @@ class ComputeCloudMixin: :param ram: Memory in MB for the flavor :param vcpus: Number of VCPUs for the flavor :param disk: Size of local disk in GB + :param description: Description of the flavor :param flavorid: ID for the flavor (optional) :param ephemeral: Ephemeral space size in GB :param swap: Swap space in MB @@ -1414,6 +1416,7 @@ class ComputeCloudMixin: 'rxtx_factor': rxtx_factor, 'swap': swap, 'vcpus': vcpus, + 'description': description, } if flavorid == 'auto': attrs['id'] = None diff --git a/openstack/tests/unit/cloud/test_flavors.py b/openstack/tests/unit/cloud/test_flavors.py index 9676ae209..9ca45f4ad 100644 --- a/openstack/tests/unit/cloud/test_flavors.py +++ b/openstack/tests/unit/cloud/test_flavors.py @@ -34,6 +34,7 @@ class TestFlavors(base.TestCase): json={ 'flavor': { "name": "vanilla", + "description": None, "ram": 65536, "vcpus": 24, "swap": 0,