From 4ff157947a27001fd45bbb839bce4d4bf8653408 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 25 Jan 2023 16:11:54 +0100 Subject: [PATCH] Use the name of the VM as id for gcp vim_connector Change-Id: I7472839c5c53dabda12c9fbf5bdfa6d0adc8b5b2 Signed-off-by: garciadeblas --- src/osm_ngsa/osm_mon/vim_connectors/gcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osm_ngsa/osm_mon/vim_connectors/gcp.py b/src/osm_ngsa/osm_mon/vim_connectors/gcp.py index 396e136..73d09af 100644 --- a/src/osm_ngsa/osm_mon/vim_connectors/gcp.py +++ b/src/osm_ngsa/osm_mon/vim_connectors/gcp.py @@ -82,7 +82,7 @@ class GcpCollector(VIMConnector): log.info(response["items"]) for server in response["items"]: vm = { - "id": server["id"], + "id": server["name"], "name": server["name"], "status": (1 if (server["status"] == "RUNNING") else 0), } -- 2.25.1