cloud-setup: fix the host address for azure

Fixes: e7ac7290bd ('cloud-setup: add tool for automatic IP configuration in cloud')
This commit is contained in:
Sayed Shah 2020-07-29 17:49:28 -04:00 committed by Thomas Haller
parent 76a6a30577
commit df6cdd4315
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -11,7 +11,7 @@
#define HTTP_TIMEOUT_MS 3000
#define NM_AZURE_METADATA_HEADER "Metadata:true"
#define NM_AZURE_HOST "localhost:8080"
#define NM_AZURE_HOST "169.254.169.254"
#define NM_AZURE_BASE "http://" NM_AZURE_HOST
#define NM_AZURE_API_VERSION "?format=text&api-version=2017-04-02"
#define NM_AZURE_METADATA_URL_BASE /* $NM_AZURE_BASE/$NM_AZURE_API_VERSION */ "/metadata/instance/network/interface/"