Skip to content

Commit af56270

Browse files
authored
Fix failure if nmstateconfig.yaml doesn't exist (#1552)
Fix script failure if the file doesn't exist.
1 parent 0d83895 commit af56270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/06_agent_create_cluster.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function create_factory_image() {
5151
"${openshift_install}" --dir="${asset_dir}" --log-level=debug agent create cluster-manifests
5252

5353
# Remove any static networking configuration from unconfigured so that config-image sets it
54-
rm "${asset_dir}/cluster-manifests/nmstateconfig.yaml"
54+
rm -f "${asset_dir}/cluster-manifests/nmstateconfig.yaml"
5555
rm "${asset_dir}/.openshift_install_state.json"
5656

5757
"${openshift_install}" --dir="${asset_dir}" --log-level=debug agent create unconfigured-ignition

0 commit comments

Comments
 (0)