Skip to content

Commit

Permalink
Merge pull request #554 from involucelate/master
Browse files Browse the repository at this point in the history
Fix windows 2008 hostname truncation
  • Loading branch information
thommay committed Jun 24, 2015
2 parents 132eef5 + 2df4c08 commit f744348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ohai/plugins/hostname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def sigar_is_available?
wmi = WmiLite::Wmi.new
host = wmi.first_of('Win32_ComputerSystem')

hostname "#{host['name']}"
hostname "#{host['dnshostname']}"
machinename "#{host['name']}"

info = Socket.gethostbyname(Socket.gethostname)
Expand Down

0 comments on commit f744348

Please sign in to comment.