Skip to content

Commit a8d43ed

Browse files
authored
Merge pull request #188 from geerlingguy/102-fix-implicit-conversion
Issue #102: Fix implicit conversion of nil into string error.
2 parents e0aff2f + 1882da3 commit a8d43ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vagrant-hostsupdater/HostsUpdater.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def host_entry(ip, hostnames, name, uuid = self.uuid)
123123
end
124124

125125
def createHostEntry(ip, hostname, name, uuid = self.uuid)
126-
%Q(#{ip} #{hostname} #{signature(name, uuid)})
126+
%Q(#{ip} #{hostname} #{signature(name, uuid.to_s)})
127127
end
128128

129129
# Create a regular expression that will match *any* entry describing the

0 commit comments

Comments
 (0)