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
* Adds REVERT_AND_IGNORE description and prefix on log lines with printf
* Fixes typo
* Adds new restore policy REVERT_AND_IGNORE_FAILURE in order to ignore errors returned on the revert during the resource destroy
* Adds new test for new restore policy. This function should not check revert because the policy says to ignore. I have injected an error on the undelete function to simulate API error and it worked as expected. Worth to mention that on day to day it is just testing it overall behavior when the restore_policy is REVERT_AND_IGNORE_FAILURE
* Reordering error handling code, no functional changes
Co-authored-by: Thiago Carvalho <[email protected]>
Signed-off-by: Modular Magician <[email protected]>
Co-authored-by: Thiago Carvalho <[email protected]>
Copy file name to clipboardExpand all lines: website/docs/r/google_project_default_service_accounts.html.markdown
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,10 @@ The following arguments are supported:
44
44
45
45
-`action` - (Required) The action to be performed in the default service accounts. Valid values are: `DEPRIVILEGE`, `DELETE`, `DISABLE`. Note that `DEPRIVILEGE` action will ignore the REVERT configuration in the restore_policy
46
46
47
-
-`restore_policy` - (Optional) The action to be performed in the default service accounts on the resource destroy. Valid values are `NONE` and `REVERT`. If set to `REVERT` it will attempt to restore all default SAs but in the `DEPRIVILEGE` action.
47
+
-`restore_policy` - (Optional) The action to be performed in the default service accounts on the resource destroy.
48
+
Valid values are NONE, REVERT and REVERT_AND_IGNORE_FAILURE. It is applied for any action but in the DEPRIVILEGE.
49
+
If set to REVERT it attempts to restore all default SAs but the DEPRIVILEGE action.
50
+
If set to REVERT_AND_IGNORE_FAILURE it is the same behavior as REVERT but ignores errors returned by the API.
0 commit comments