Return 0 when no boxes are installed
Previously the cli returned 1 for `vagrant box list` if there are no installed boxes. This is somewhat misleading since the command completes without an error, it should return 0
This commit is contained in:
parent
de996a6047
commit
2513d21054
@ -24,7 +24,8 @@ module VagrantPlugins
|
||||
|
||||
boxes = @env.boxes.all
|
||||
if boxes.empty?
|
||||
return @env.ui.warn(I18n.t("vagrant.commands.box.no_installed_boxes"), prefix: false)
|
||||
@env.ui.warn(I18n.t("vagrant.commands.box.no_installed_boxes"), prefix: false)
|
||||
return 0
|
||||
end
|
||||
|
||||
list_boxes(boxes, options[:info])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user