Skip to content

Commit

Permalink
fix scshort macro flag (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguyvda authored Aug 26, 2024
1 parent ae26425 commit 1848dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/centreon-stream-connectors-lib/sc_macros.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1848dd2

Please sign in to comment.