Project

General

Profile

Actions

Bug #16494

closed

[Missing Report #0] probably due to variable in script

Added by Matthew Laquerbe over 4 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Technique editor
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

Hi,

I had a file to put that contains some batch lines. For any reason, one specific block is causing a "[Missing Report #0] when the policy is executed by Rudder. Here the block that is causing the issue

if [[ $DISTRIB_DESCRIPTION =~ $re ]]; then
DISTRIB_DESCRIPTION=$(printf "%s%s%s%s%s" "${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}" "${BASH_REMATCH[3]}")
fi

To bypass it, i created another variable containing the whole ${BASH_REMATCH[X]} line like this :
REMATCH="${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}" "${BASH_REMATCH[3]}"
if [[ $DISTRIB_DESCRIPTION =~ $re ]]; then DISTRIB_DESCRIPTION=$(printf "%s%s%s%s%s" $REMATCH) fi

and now it works.

Rudder's version 6.0.0 (not in the target version list)

Actions

Also available in: Atom PDF