summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrant Zanetti <grort@mani.ac.nz>2009-07-09 11:19:31 +1200
committerGrant Zanetti <grort@mani.ac.nz>2009-07-09 11:19:31 +1200
commit7c7c15b8f8d75f9e33705219a73a713a774b3941 (patch)
treee4c712c091d08b475fcd4976678f4fbf92d657cd /lib
parent61efae877339e907da3cbe1e7f16f5e01782f28f (diff)
downloadohai-7c7c15b8f8d75f9e33705219a73a713a774b3941.tar.gz
OHAI-100: hostname output differs between redhat dirivative and debian dirivative distributions
* Fixed hostname to use -s * Fixed spec to use -s
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