* Added support for object and select custom fields in host groups and proxy config.

* Corrected error when `full_proxy_sync` was not set and a host no longer uses a proxy.
This commit is contained in:
Raymond Kuiper
2025-09-12 14:11:38 +02:00
parent 123b243f56
commit 422d343c1f
4 changed files with 24 additions and 11 deletions

View File

@@ -3,7 +3,7 @@
from logging import getLogger
from modules.exceptions import HostgroupError
from modules.tools import build_path
from modules.tools import build_path, cf_to_string
class Hostgroup:
@@ -134,7 +134,7 @@ class Hostgroup:
raise HostgroupError(msg)
# CF data is populated
if cf_data["cf"]:
hg_output.append(cf_data["cf"])
hg_output.append(cf_to_string(cf_data["cf"]))
continue
# Check if there is a value associated to the variable.
# For instance, if a device has no location, do not use it with hostgroup calculation