Skip to content

Commit ef5a429

Browse files
AmineChikhaouirbvermaa
authored andcommittedJan 18, 2018
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)
1 parent 780d1c4 commit ef5a429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎nixos/modules/virtualisation/google-compute-image.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ in
211211
echo "Obtaining SSH keys..."
212212
mkdir -m 0700 -p /root/.ssh
213213
AUTH_KEYS=$(${mktemp})
214-
${wget} -O $AUTH_KEYS http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys
214+
${wget} -O $AUTH_KEYS --header="Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys
215215
if [ -s $AUTH_KEYS ]; then
216216
217217
# Read in key one by one, split in case Google decided

0 commit comments

Comments
 (0)