Merge pull request #41311 from AmineChikhaoui/fix-gce-fetch-ssh

GCE image: properly remove the temporary ssh host keys files/directory
This commit is contained in:
Rob Vermaas 2018-06-04 11:38:07 +02:00 committed by GitHub
commit 19332e4d52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,7 @@ in
echo "Setup of ssh host keys from http://metadata.google.internal/computeMetadata/v1/instance/attributes/ failed." echo "Setup of ssh host keys from http://metadata.google.internal/computeMetadata/v1/instance/attributes/ failed."
false false
fi fi
rm -f $SSH_HOST_KEYS_DIR rm -rf $SSH_HOST_KEYS_DIR
''; '';
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = true; serviceConfig.RemainAfterExit = true;