Packer: don't source non-existing file in worker_executor.sh

The /tmp/cloud_init_vars is not created on the worker executor, so
sourcing it will make the script fail. Comment the line out, until we
change the worker implementation to inject this file into the worker
executor using cloud-init.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-03-07 13:27:11 +01:00 committed by Sanne Raymaekers
parent 86e19bf198
commit 7c42924ffa

View file

@ -2,7 +2,8 @@
set -euo pipefail
source /etc/os-release
source /tmp/cloud_init_vars
# TODO: uncomment, when the cloud_init_vars file is created on the executor
#source /tmp/cloud_init_vars
# Don't subscribe on fedora
if [ "$ID" != fedora ]; then