mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
M #-: refresh Terraform state before destroying (#997)
This commit is contained in:
parent
8028807600
commit
2dc81c7fac
@ -224,7 +224,8 @@ module OneProvision
|
||||
# Destroy
|
||||
Driver.retry_loop("Driver action 'tf destroy' failed", provision) do
|
||||
_, e, s = Driver.run(
|
||||
"cd #{tempdir}; terraform destroy #{target} -auto-approve"
|
||||
"cd #{tempdir}; terraform refresh; " \
|
||||
"terraform destroy #{target} -auto-approve"
|
||||
)
|
||||
|
||||
unless s && s.success?
|
||||
|
Loading…
Reference in New Issue
Block a user