summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-04-28 17:07:54 +0100
committerAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-04-28 17:07:54 +0100
commitf514a6896919f090cd811ebd9866ace1bb4b2b54 (patch)
tree13221e3bddd82ce5e2d1545689fdcd59e0ef3ed3 /nixos
parent4a86f8c9abd99b880b8a9c3609d330c7ff398ad5 (diff)
downloadnixpkgs-f514a6896919f090cd811ebd9866ace1bb4b2b54.tar
nixpkgs-f514a6896919f090cd811ebd9866ace1bb4b2b54.tar.gz
nixpkgs-f514a6896919f090cd811ebd9866ace1bb4b2b54.tar.bz2
nixpkgs-f514a6896919f090cd811ebd9866ace1bb4b2b54.tar.lz
nixpkgs-f514a6896919f090cd811ebd9866ace1bb4b2b54.tar.xz
nixpkgs-f514a6896919f090cd811ebd9866ace1bb4b2b54.tar.zst
nixpkgs-f514a6896919f090cd811ebd9866ace1bb4b2b54.zip
barf if pulling the ssh host keys fails
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/google-compute-image.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/google-compute-image.nix b/nixos/modules/virtualisation/google-compute-image.nix
index f175be673ba..374a8433235 100644
--- a/nixos/modules/virtualisation/google-compute-image.nix
+++ b/nixos/modules/virtualisation/google-compute-image.nix
@@ -255,6 +255,7 @@ in
               chmod 644 /etc/ssh/ssh_host_ed25519_key.pub
           else
               echo "Setup of ssh host keys from http://metadata.google.internal/computeMetadata/v1/instance/attributes/ failed."
+              false
           fi
           rm -f $SSH_HOST_KEYS_DIR
         '';