From d04ec704c1a33633f3bfc6bc24a5c3fb900b0f53 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 23 Oct 2014 10:12:27 -0700 Subject: [PATCH] update CHANGELOG --- CHANGELOG.md | 1 + plugins/guests/suse/cap/change_host_name.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 048529d39..ba8c19c3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ IMPROVEMENTS: + - guests/suse: Support NFS client install, rsync setup. [GH-4492] - guests/windows: Hostname can be set without reboot. [GH-4687] - providers/docker: Can now start containers from private repositories more easily. Vagrant will login for you if you specify auth. [GH-4042] diff --git a/plugins/guests/suse/cap/change_host_name.rb b/plugins/guests/suse/cap/change_host_name.rb index e4b9cee56..616b92495 100644 --- a/plugins/guests/suse/cap/change_host_name.rb +++ b/plugins/guests/suse/cap/change_host_name.rb @@ -5,7 +5,7 @@ module VagrantPlugins def self.change_host_name(machine, name) machine.communicate.tap do |comm| # Only do this if the hostname is not already set - unless comm.test("sudo hostname | grep '#{name}'") + if !comm.test("sudo hostname | grep '#{name}'") comm.sudo("echo #{name} > /etc/HOSTNAME") comm.sudo("hostname #{name}")