Update reject to compact

This commit is contained in:
Brian Cain 2019-09-05 15:39:24 -07:00
parent 7b0dc8d528
commit 99b5867559
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ module VagrantPlugins
def validate(machine, provisioners)
errors = _detected_errors
provisioner_names = provisioners.map { |i| i.name.to_s if i.name != name }.reject(&:nil?)
provisioner_names = provisioners.map { |i| i.name.to_s if i.name != name }.compact
if @before && @after
errors << I18n.t("vagrant.provisioners.base.both_before_after_set")