mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-07-05 00:43:13 -04:00
Update python-node-exporter.py
This commit is contained in:
@@ -189,8 +189,8 @@ def GetStatsFunc():
|
|||||||
|
|
||||||
oldvmdata = tempdb.search(dbvm.VmIdentifier == vm['VmIdentifier'])
|
oldvmdata = tempdb.search(dbvm.VmIdentifier == vm['VmIdentifier'])
|
||||||
|
|
||||||
log.info("Checking TempDB for VM " + vm['VmIdentifier'])
|
log.info("Checking TempDB for VM " + vm['VmIdentifier'] + " in VPG " + vm['VpgIdentifier'])
|
||||||
if (oldvmdata):
|
if (oldvmdata and (oldvmdata[0]['VpgIdentifier'] != vm['VpgIdentifier'])):
|
||||||
log.info(vm['VmIdentifier'] + " Record Found")
|
log.info(vm['VmIdentifier'] + " Record Found")
|
||||||
log.debug(oldvmdata[0])
|
log.debug(oldvmdata[0])
|
||||||
log.debug(tempdb.update(vm, dbvm.VmIdentifier == vm['VmIdentifier']))
|
log.debug(tempdb.update(vm, dbvm.VmIdentifier == vm['VmIdentifier']))
|
||||||
|
|||||||
Reference in New Issue
Block a user