lol

openstack-metadata-fetcher: don't fail if any specific wget's fail

+3 -3
+3 -3
nixos/modules/virtualisation/openstack-metadata-fetcher.nix
··· 14 14 wget ${wgetExtraOptions} "$@" 15 15 } 16 16 17 - wget_imds -O "$metaDir/ami-manifest-path" http://169.254.169.254/1.0/meta-data/ami-manifest-path 17 + wget_imds -O "$metaDir/ami-manifest-path" http://169.254.169.254/1.0/meta-data/ami-manifest-path || true 18 18 # When no user-data is provided, the OpenStack metadata server doesn't expose the user-data route. 19 19 (umask 077 && wget_imds -O "$metaDir/user-data" http://169.254.169.254/1.0/user-data || rm -f "$metaDir/user-data") 20 - wget_imds -O "$metaDir/hostname" http://169.254.169.254/1.0/meta-data/hostname 21 - wget_imds -O "$metaDir/public-keys-0-openssh-key" http://169.254.169.254/1.0/meta-data/public-keys/0/openssh-key 20 + wget_imds -O "$metaDir/hostname" http://169.254.169.254/1.0/meta-data/hostname || true 21 + wget_imds -O "$metaDir/public-keys-0-openssh-key" http://169.254.169.254/1.0/meta-data/public-keys/0/openssh-key || true 22 22 ''