From 1882da3a6e42650d4fcca44477dda1fa9f0960d2 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 24 Nov 2020 10:34:38 -0600 Subject: [PATCH] Issue #102: Fix implicit conversion of nil into string error. --- lib/vagrant-hostsupdater/HostsUpdater.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-hostsupdater/HostsUpdater.rb b/lib/vagrant-hostsupdater/HostsUpdater.rb index bf61189..b2e8fc0 100644 --- a/lib/vagrant-hostsupdater/HostsUpdater.rb +++ b/lib/vagrant-hostsupdater/HostsUpdater.rb @@ -123,7 +123,7 @@ def host_entry(ip, hostnames, name, uuid = self.uuid) end def createHostEntry(ip, hostname, name, uuid = self.uuid) - %Q(#{ip} #{hostname} #{signature(name, uuid)}) + %Q(#{ip} #{hostname} #{signature(name, uuid.to_s)}) end # Create a regular expression that will match *any* entry describing the