From 752455a47fb70a75620756e3c02d7dff15f42a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Barcarol=20Guimar=C3=A3es?= Date: Thu, 16 Jan 2020 09:57:13 +0000 Subject: [PATCH] templates: fix check for unset variable https://github.com/openshift/release/pull/6718 added `set -u` to scripts that access unset variables. --- .../openshift/installer/cluster-launch-installer-e2e.yaml | 2 +- .../openshift/installer/cluster-launch-installer-src.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml index 48d1865f2497..10d85285eb44 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml @@ -690,7 +690,7 @@ objects: fi # TODO: Replace with a more concise manifest injection approach - if [[ -n "${CLUSTER_NETWORK_MANIFEST}" ]]; then + if [[ -n "${CLUSTER_NETWORK_MANIFEST:-}" ]]; then openshift-install --dir=/tmp/artifacts/installer/ create manifests echo "${CLUSTER_NETWORK_MANIFEST}" > /tmp/artifacts/installer/manifests/cluster-network-03-config.yml fi diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml index 6d30b485ea1e..1e934f673c9e 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml @@ -529,7 +529,7 @@ objects: fi # TODO: Replace with a more concise manifest injection approach - if [[ -n "${CLUSTER_NETWORK_MANIFEST}" ]]; then + if [[ -n "${CLUSTER_NETWORK_MANIFEST:-}" ]]; then openshift-install --dir=/tmp/artifacts/installer/ create manifests echo "${CLUSTER_NETWORK_MANIFEST}" > /tmp/artifacts/installer/manifests/cluster-network-03-config.yml fi