From 028e182ba9e6e05ee8132d97ca16449aa9cb6aec Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Fri, 30 May 2014 23:22:14 +0200 Subject: [PATCH] Set a hostname even if the environment variable is not set --- vagrantSandbox/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vagrantSandbox/Vagrantfile b/vagrantSandbox/Vagrantfile index 65c0eecb6..09476c10b 100644 --- a/vagrantSandbox/Vagrantfile +++ b/vagrantSandbox/Vagrantfile @@ -4,7 +4,7 @@ Vagrant.configure("2") do |config| config.vm.synced_folder "..", "/FOAM-sources" - config.vm.hostname="vagrant."+ENV["HOSTNAME"] + config.vm.hostname="vagrant."+ (ENV["HOSTNAME"] || `hostname`) nrCPU=1 if ENV["WM_VAGRANT_CPUS"]