From 4a6588cc827bf55b6e109eeadf2518b2df7c4b57 Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Thu, 23 Mar 2023 12:39:00 -0400 Subject: [PATCH] Update python-node-exporter.py ill get it right sooner or later --- app/python-node-exporter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/python-node-exporter.py b/app/python-node-exporter.py index 62c18e2..ad29ec5 100644 --- a/app/python-node-exporter.py +++ b/app/python-node-exporter.py @@ -332,7 +332,7 @@ def GetDataFunc(): ## VMs API log.debug("Getting VMs API") uri = "https://" + zvm_url + ":" + zvm_port + "/v1/vms/" - + vmapi_json = {} try: vmapi = requests.get(url=uri, timeout=3, headers=h2, verify=verifySSL) @@ -361,6 +361,7 @@ def GetDataFunc(): log.debug("Getting Scratch Volumes") uri = "https://" + zvm_url + ":" + zvm_port + "/v1/volumes?volumeType=scratch" + volapi_json = {} try: volapi = requests.get(url=uri, timeout=api_timeout, headers=h2, verify=verifySSL) volapi_json = volapi.json() @@ -386,6 +387,7 @@ def GetDataFunc(): ## Volumes API for Journal Volumes log.debug("Getting Journal Volumes") + volapi_json = {} uri = "https://" + zvm_url + ":" + zvm_port + "/v1/volumes?volumeType=journal" try: volapi = requests.get(url=uri, timeout=api_timeout, headers=h2, verify=verifySSL)