You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vagrant up has the option --no-destroy-on-error which is very helpful for debugging. It would be nice if python-vagrant supported it, and it looks simple to add. I would just add destroy_on_error=True as an arg to vagrant.up() then pass the right arg depending on that value, something like:
~ $ vagrant up --helpUsage: vagrant up [options] [name|id]Options: --[no-]provision Enable or disable provisioning --provision-with x,y,z Enable only certain provisioners, by type or by name. --[no-]destroy-on-error Destroy machine if any fatal error happens (default to true) --[no-]parallel Enable or disable parallelism if provider supports it --provider PROVIDER Back the machine with a specific provider --[no-]install-provider If possible, install the provider if it isn't installed -h, --help Print this help ~ $
I just ran into this today, and it would be really helpful to still have. I was testing Talos with vagrant and using ansible to make API calls to it. When I got to build it in molecule, there is always a failure to log in because it doesn't support ssh. If I could just tell it to ignore the failure everything would work. As it is now (with libvirt) it deletes the VM and I can't get around it.
Activity
konstruktoid commentedon Apr 4, 2022
Hi @eighthave, you basically got a PR all done already, want to submit one as well? :)
eighthave commentedon Apr 4, 2022
konstruktoid commentedon Apr 4, 2022
Sure thing, seems like an option that can come in handy.
support --no-destroy-on-error in up(), closes pycontribs#122
eighthave commentedon Jul 12, 2022
#129
support --no-destroy-on-error in up(), closes pycontribs#122
support --no-destroy-on-error in up(), closes pycontribs#122
support --no-destroy-on-error in up(), closes pycontribs#122
support --no-destroy-on-error in up(), closes pycontribs#122
sangdrax8 commentedon Aug 14, 2024
I just ran into this today, and it would be really helpful to still have. I was testing Talos with vagrant and using ansible to make API calls to it. When I got to build it in molecule, there is always a failure to log in because it doesn't support ssh. If I could just tell it to ignore the failure everything would work. As it is now (with libvirt) it deletes the VM and I can't get around it.