I think you can always use smth like 

VAGRANT_DEFAULT_PROVIDER=lxc vagrant destroy -f

to destroy or do smth else, however I can't pretend I understand why, when 
using

vagrant up --provider=virtualbox

it works, while when using 

VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up

it doesn't work. I used your code above.


On Saturday, 23 August 2014 06:52:56 UTC+3, Hamilton Turner wrote:
>
> Also, that code only works for the "vagrant up" command (e.g. when 
> provider is specified). If you need to know the provider for something 
> like "vagrant destroy" 
> I'm not sure how you could do that, unless you can have a variable that 
> persists between
> vagrantfile loads
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/baf2d357-6748-43f1-b4b7-02bb8810aa7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to