Description
node['cloud'] = nil in AWS environment where full tunnel VPN is enabled
Ohai Version
Ohai: 17.9.0
Platform Version
Windows 10
Ohai Output
VPN not enabled
PS C:\Windows> ohai cloud { "local_ipv4_addrs": [ "redacted" ], "provider": "ec2", "local_hostname": "redacted", "local_ipv4": "redacted" }
VPN enabled
C:\Windows> ohai cloud
C:/opscode/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/system.rb:185:in `attributes_print': I cannot find an attribute named cloud! (ArgumentError)
from C:/opscode/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:151:in `block in run_application'
from C:/opscode/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:150:in `each'
from C:/opscode/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:150:in `run_application'
from C:/opscode/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:92:in `block in run'
from C:/opscode/chef/embedded/lib/ruby/3.0.0/benchmark.rb:308:in `realtime'
from C:/opscode/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:90:in `run'
from C:/opscode/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/bin/ohai:25:in `<top (required)>'
from C:/opscode/chef/bin/ohai:173:in `load'
from C:/opscode/chef/bin/ohai:173:in `<main>'
PS C:\Windows>
At a minimum node['cloud']['provided'] attribute should be populated even if metadata can not be fetched.
Description
node['cloud'] = nil in AWS environment where full tunnel VPN is enabled
Ohai Version
Ohai: 17.9.0
Platform Version
Windows 10
Ohai Output
VPN not enabled
PS C:\Windows> ohai cloud { "local_ipv4_addrs": [ "redacted" ], "provider": "ec2", "local_hostname": "redacted", "local_ipv4": "redacted" }VPN enabled
At a minimum node['cloud']['provided'] attribute should be populated even if metadata can not be fetched.