From 8de02d4b7f616c75ba4e6cba5149e5af8670c6c4 Mon Sep 17 00:00:00 2001 From: tanguyvda Date: Mon, 1 Jul 2024 09:06:30 +0200 Subject: [PATCH] fix scshort macro flag --- modules/centreon-stream-connectors-lib/sc_macros.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/centreon-stream-connectors-lib/sc_macros.lua b/modules/centreon-stream-connectors-lib/sc_macros.lua index ebcaf51a..5f72e532 100644 --- a/modules/centreon-stream-connectors-lib/sc_macros.lua +++ b/modules/centreon-stream-connectors-lib/sc_macros.lua @@ -499,7 +499,7 @@ end -- @param macro_value (string) the string that needs to be shortened -- @return string (string) the input string with only the first lne function ScMacros:transform_short(macro_value) - return string.match(macro_value, "^(.*)\n") + return string.match(macro_value, "^(.*)\n") or macro_value end --- transform_type: convert a 0, 1 value into SOFT or HARD