Skip to content

Commit

Permalink
Spectrum: Adjust password fetching
Browse files Browse the repository at this point in the history
CMK-21182

Change-Id: Ic193a47012a059bd4f5639426636b96e96e8c312
  • Loading branch information
makanakoeln committed Jan 16, 2025
1 parent decdd7c commit dc94096
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmk/notification_plugins/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,10 @@ def main() -> NoReturn:
base_oid + ".14": context.get("SERVICEGROUPNAMES", ""),
}

sys.exit(send_trap(oids, context["PARAMETER_DESTINATION"], context["PARAMETER_COMMUNITY"]))
sys.exit(
send_trap(
oids,
context["PARAMETER_DESTINATION"],
utils.get_password_from_env_or_context(key="PARAMETER_COMMUNITY", context=context),
)
)

0 comments on commit dc94096

Please sign in to comment.