🎨 Minor formatting cleanup

This commit is contained in:
Wouter de Bruijn
2025-10-15 17:27:07 +02:00
parent efb42916fd
commit 8197f41788
2 changed files with 12 additions and 11 deletions

View File

@@ -118,8 +118,8 @@ class Hostgroup:
# Check if requested data is available as option for this host
if hg_item not in self.format_options:
if hg_item.startswith(("'", '"')) and hg_item.endswith(("'", '"')):
hg_item = hg_item.strip("\'")
hg_item = hg_item.strip('\"')
hg_item = hg_item.strip("'")
hg_item = hg_item.strip('"')
hg_output.append(hg_item)
else:
# Check if a custom field exists with this name