You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Ubuntu 24.04. VM on a Hyper-V Host running. All cnspec commands like cnspec status take really long (about 2 minutes).
To Reproduce
Steps to reproduce the behavior:
Run 'cnspec status'
Wait
Expected behavior
Command execution takes only several seconds
Screenshots or CLI Output
With debug logging enabled, the execution gets stuck at the curl command curl --noproxy '*' -H Metadata:true http://169.254.169.254/metadata/instance?api-version=2021-02-01.
When executing the curl command it takes 2 minutes to finish off.
Desktop (please complete the following information):
OS: Ubuntu Server
OS Version: 24.04. LTS
Browser if applicable: n/a
Browser Version: n/a
Additional context
I think the problem is this line
Describe the bug
Ubuntu 24.04. VM on a Hyper-V Host running. All cnspec commands like
cnspec status
take really long (about 2 minutes).To Reproduce
Steps to reproduce the behavior:
Expected behavior
Command execution takes only several seconds
Screenshots or CLI Output
With debug logging enabled, the execution gets stuck at the curl command
curl --noproxy '*' -H Metadata:true http://169.254.169.254/metadata/instance?api-version=2021-02-01
.When executing the curl command it takes 2 minutes to finish off.
Desktop (please complete the following information):
Additional context
I think the problem is this line
https://github.com/mondoohq/cnquery/blob/e0e28b936a5e58770664d812247dedd576d28297/providers/os/id/azcompute/azcompute.go#L60
We should adjust the curl command like this:
The text was updated successfully, but these errors were encountered: