Commit e15be36d999e8a763b8ce6af8bf681f0ccfbd3a4

Thomas de Grivel 2018-07-03T11:23:05

probe hostname

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/core/host.lisp b/core/host.lisp
index dd98597..bc2efdf 100644
--- a/core/host.lisp
+++ b/core/host.lisp
@@ -150,7 +150,7 @@
 				 :version version))))))
 
 (defmethod probe-hostname ((host host) (os os-unix))
-  (cons :hostname (run "hostname")))
+  (list :hostname (first (run "hostname"))))
 
 (defmethod probe-boot-time ((host host) (os os-unix))
   (with-uptime<1> (time uptime users load1 load5 load15) (run "uptime")