lib/resources/sys_info.rb in inspec-1.19.2 vs lib/resources/sys_info.rb in inspec-1.20.0

- old
+ new

@@ -12,10 +12,10 @@ " # returns the hostname of the local system def hostname os = inspec.os - if os.linux? + if os.linux? || os.darwin? inspec.command('hostname').stdout.chomp elsif os.windows? inspec.powershell('$env:computername').stdout.chomp else skip_resource 'The `sys_info.hostname` resource is not supported on your OS yet.'