summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ohai/plugins/linux/hostname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/linux/hostname.rb b/lib/ohai/plugins/linux/hostname.rb
index 76469fa5..896ad821 100644
--- a/lib/ohai/plugins/linux/hostname.rb
+++ b/lib/ohai/plugins/linux/hostname.rb
@@ -18,7 +18,7 @@
provides "hostname", "fqdn"
-hostname from("hostname")
+hostname from("hostname -s")
begin
fqdn from("hostname --fqdn")
rescue