Skip to content
Permalink
Browse files

7898 FIX Fix possible syntax error when configuring service contact g…

…roups (1.6.0b2 regression)

A "syntax error" exception could occur when configuring service contact groups
using the folder hierarchy of WATO

Change-Id: I964f5cbdc61382ebffdeff5626cfcb6567de9d58
  • Loading branch information
LarsMichelsen committed Jun 26, 2019
1 parent 289cce3 commit e81a79b0703e2d6d5f3872c74b61522ab7a865e4
Showing with 12 additions and 1 deletion.
  1. +11 −0 .werks/7898
  2. +1 −1 cmk/gui/watolib/hosts_and_folders.py
@@ -0,0 +1,11 @@
Title: Fix possible syntax error when configuring service contact groups (1.6.0b2 regression)
Level: 1
Component: wato
Compatible: compat
Edition: cre
Version: 1.6.0b3
Date: 1561575813
Class: fix

A "syntax error" exception could occur when configuring service contact groups
using the folder hierarchy of WATO
@@ -794,7 +794,7 @@ def _save_hosts_file(self):
for cg in contact_groups:
out.write(
"\nservice_contactgroups.insert(0, \n"
" {'value' %r, 'condition': {'host_folder': '/' + FOLDER_PATH}})\n" % cg)
" {'value': %r, 'condition': {'host_folder': '/' + FOLDER_PATH}})\n" % cg)

# Write information about all host attributes into special variable - even
# values stored for check_mk as well.

0 comments on commit e81a79b

Please sign in to comment.
You can’t perform that action at this time.