Commit e5240b82eb5573887047a74630a77c93f2246452

Thomas de Grivel 2020-04-14T15:01:19

make hostname use *host* by default

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/core/host.lisp b/core/host.lisp
index 415184a..acf2908 100644
--- a/core/host.lisp
+++ b/core/host.lisp
@@ -71,7 +71,7 @@
 
 ;;  Host
 
-(defun hostname (host)
+(defun hostname (&optional (host *host*))
   (resource-id (the host host)))
 
 ;;  Host shell