From: garciadeblas Date: Wed, 25 Jan 2023 15:11:54 +0000 (+0100) Subject: Use the name of the VM as id for gcp vim_connector X-Git-Tag: release-v14.0-start~23 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=4ff157947a27001fd45bbb839bce4d4bf8653408;p=osm%2FNG-SA.git Use the name of the VM as id for gcp vim_connector Change-Id: I7472839c5c53dabda12c9fbf5bdfa6d0adc8b5b2 Signed-off-by: garciadeblas --- 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), }