diff options
author | Toshi Aoyama <toaoyama@microsoft.com> | 2023-01-31 23:34:05 +0900 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2023-02-08 15:42:52 -0500 |
commit | 5e4c8b02308c92169f897f816b64a2faff863e6d (patch) | |
tree | 134f2e521510b3c63fc61fe9d777992d49d2b758 | |
parent | f7e7b735bee9117d130aeffafe5c0f22c3c338cb (diff) | |
download | sos-5e4c8b02308c92169f897f816b64a2faff863e6d.tar.gz |
[azure] Update curl command for Azure Metadata
- add `--noproxy` option
- update api-version to `2021-01-01`
- add query parameter `format=json`
Signed-off-by: Toshi Aoyama <toaoyama@microsoft.com>
-rw-r--r-- | sos/report/plugins/azure.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/report/plugins/azure.py b/sos/report/plugins/azure.py index 90999b3f..253b9e7f 100644 --- a/sos/report/plugins/azure.py +++ b/sos/report/plugins/azure.py @@ -41,9 +41,9 @@ class Azure(Plugin, UbuntuPlugin): self.add_copy_spec(self.path_join(path, name), sizelimit=limit) self.add_cmd_output(( - 'curl -s -H Metadata:true ' + 'curl -s -H Metadata:true --noproxy "*" ' '"http://169.254.169.254/metadata/instance/compute?' - 'api-version=2019-11-01"' + 'api-version=2021-01-01&format=json"' ), suggest_filename='instance_metadata.json') |