Skip to content

Commit 3181033

Browse files
committed
whitespaces
1 parent 1f67f4f commit 3181033

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

acceptance/bundle/lifecycle/prevent-destroy/out.direct-exp.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
>>> errcode [CLI] bundle plan
33

44
>>> musterr [CLI] bundle destroy --auto-approve
5-
Error: resource my_pipelines has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for pipelines.my_pipelines
5+
Error: resource my_pipelines has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for pipelines.my_pipelines
66

77

88
Exit code (musterr): 1
@@ -12,7 +12,7 @@ recreate pipelines.my_pipelines
1212

1313
>>> musterr [CLI] bundle deploy
1414
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/prevent-destroy/default/files...
15-
Error: resource my_pipelines has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for pipelines.my_pipelines
15+
Error: resource my_pipelines has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for pipelines.my_pipelines
1616

1717

1818
Exit code (musterr): 1

bundle/phases/plan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func checkForPreventDestroy(b *bundle.Bundle, actions []deployplan.Action, isDes
6767
preventDestroyV := lifecycleV.Get("prevent_destroy")
6868
preventDestroy, ok := preventDestroyV.AsBool()
6969
if ok && preventDestroy {
70-
return fmt.Errorf("resource %s has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for %s.%s ", action.Key, action.Group, action.Key)
70+
return fmt.Errorf("resource %s has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for %s.%s", action.Key, action.Group, action.Key)
7171
}
7272
}
7373
}

0 commit comments

Comments
 (0)