Skip to content

Commit

Permalink
Update esx_vsphere_snapshot.py
Browse files Browse the repository at this point in the history
Some ESX server do not include a value for "vm".
  • Loading branch information
tgl27 authored May 16, 2024
1 parent c24a8fb commit b7228e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmk/base/plugins/agent_based/esx_vsphere_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,7 +18,7 @@ class Snapshot(NamedTuple):
time: int
state: str
name: str
vm: str
vm: Optional[str] = None


Section = Sequence[Snapshot]
Expand Down

0 comments on commit b7228e1

Please sign in to comment.