parent
a2151fd9d1
commit
1cedc64c5a
|
@ -2019,8 +2019,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
$str = $this->alignLegacyProperties($str);
|
||||
|
||||
if ($this->isDisabled()) {
|
||||
return "/* --- This object has been disabled ---\n"
|
||||
. $str . "*/\n";
|
||||
return
|
||||
"# --- This object has been disabled ---\n"
|
||||
. preg_replace('~^~m', '# ', trim($str))
|
||||
. "\n";
|
||||
} else {
|
||||
return $str;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue