From d16c45c2d8ea8d501f938faaa7e1c6162ae767be Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Thu, 6 Jun 2024 11:37:28 +0200 Subject: [PATCH] Add also description field --- libcloud/compute/drivers/openstack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py index d5096b9728..38b7c64be3 100644 --- a/libcloud/compute/drivers/openstack.py +++ b/libcloud/compute/drivers/openstack.py @@ -3164,6 +3164,8 @@ def _to_network(self, obj): extra["tags"] = obj.get("tags") if obj.get("is_default", None) is not None: extra["is_default"] = obj.get("is_default") + if obj.get("description", None): + extra["description"] = obj.get("description") return OpenStackNetwork(id=obj["id"], name=obj["name"], cidr=None, driver=self, extra=extra) def ex_list_networks(self):