Skip to content

Commit

Permalink
Bugfix: Read config should not create a config if missing
Browse files Browse the repository at this point in the history
The read config task created a ci config in case of missing. This
feature cause an unexpected behaviour and followup tasks failed because
of that. This time the read config returns a default value but doesn't
create an empty config file.

JIRA: ISV-4330

Signed-off-by: Ales Raszka <[email protected]>
  • Loading branch information
Allda committed Dec 1, 2023
1 parent 9ea90b4 commit 99f11b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ spec:
if [ ! -f "$CONFIG_PATH" ]; then
echo "Config file $CONFIG_PATH does not exist."
# The config is not present - let's make an empty config
echo "---" > $CONFIG_PATH
echo -n "replaces" | tee $(results.upgrade-graph-mode.path)
exit 0
fi
cat $CONFIG_PATH
Expand Down

0 comments on commit 99f11b3

Please sign in to comment.