Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Seems the google compute metadata service behavior changed a bit
recently which caused this issue ?
see: https://cloud.google.com/compute/docs/storing-retrieving-metadata

(cherry picked from commit 5dba59d)
  • Loading branch information
AmineChikhaoui authored and rbvermaa committed Jan 18, 2018
1 parent 780d1c4 commit ef5a429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/google-compute-image.nix
Expand Up @@ -211,7 +211,7 @@ in
echo "Obtaining SSH keys..."
mkdir -m 0700 -p /root/.ssh
AUTH_KEYS=$(${mktemp})
${wget} -O $AUTH_KEYS http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys
${wget} -O $AUTH_KEYS --header="Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys
if [ -s $AUTH_KEYS ]; then
# Read in key one by one, split in case Google decided
Expand Down

0 comments on commit ef5a429

Please sign in to comment.