Skip to content

Commit

Permalink
Cast to string to prevent error if no match is found
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Jul 10, 2024
1 parent f67d4f7 commit 67599f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/providers/virtualbox/driver/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def read_version
!line.start_with?("WARNING:")
end

parts = version_line.split("_")
parts = version_line.to_s.split("_")
return nil if parts.empty?
parts[0].split("r")[0]
end
Expand Down

0 comments on commit 67599f8

Please sign in to comment.