From b7228e1e6f1135a5c43590b166c4d9b6f25c5732 Mon Sep 17 00:00:00 2001 From: tgl27 <59738143+tgl27@users.noreply.github.com> Date: Thu, 16 May 2024 17:21:04 +0200 Subject: [PATCH] Update esx_vsphere_snapshot.py Some ESX server do not include a value for "vm". --- cmk/base/plugins/agent_based/esx_vsphere_snapshot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmk/base/plugins/agent_based/esx_vsphere_snapshot.py b/cmk/base/plugins/agent_based/esx_vsphere_snapshot.py index 478bab76488..2bb9ee37cb1 100644 --- a/cmk/base/plugins/agent_based/esx_vsphere_snapshot.py +++ b/cmk/base/plugins/agent_based/esx_vsphere_snapshot.py @@ -5,7 +5,7 @@ import datetime import json -from collections.abc import Mapping, Sequence +from collections.abc import Mapping, Optional, Sequence from typing import Any, NamedTuple from cmk.plugins.lib import esx_vsphere @@ -18,7 +18,7 @@ class Snapshot(NamedTuple): time: int state: str name: str - vm: str + vm: Optional[str] = None Section = Sequence[Snapshot]