mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Imports should come before Adds in change summaries (#33147)
This commit is contained in:
parent
81eb73731d
commit
77f10c4f68
@ -226,9 +226,9 @@ func (plan Plan) renderHuman(renderer Renderer, mode plans.Mode, opts ...PlanRen
|
|||||||
|
|
||||||
if importingCount > 0 {
|
if importingCount > 0 {
|
||||||
renderer.Streams.Printf(
|
renderer.Streams.Printf(
|
||||||
renderer.Colorize.Color("\n[bold]Plan:[reset] %d to add, %d to import, %d to change, %d to destroy.\n"),
|
renderer.Colorize.Color("\n[bold]Plan:[reset] %d to import, %d to add, %d to change, %d to destroy.\n"),
|
||||||
counts[plans.Create]+counts[plans.DeleteThenCreate]+counts[plans.CreateThenDelete],
|
|
||||||
importingCount,
|
importingCount,
|
||||||
|
counts[plans.Create]+counts[plans.DeleteThenCreate]+counts[plans.CreateThenDelete],
|
||||||
counts[plans.Update],
|
counts[plans.Update],
|
||||||
counts[plans.Delete]+counts[plans.DeleteThenCreate]+counts[plans.CreateThenDelete])
|
counts[plans.Delete]+counts[plans.DeleteThenCreate]+counts[plans.CreateThenDelete])
|
||||||
} else {
|
} else {
|
||||||
|
@ -141,7 +141,7 @@ Terraform will perform the following actions:
|
|||||||
value = "Hello, World!"
|
value = "Hello, World!"
|
||||||
}
|
}
|
||||||
|
|
||||||
Plan: 0 to add, 1 to import, 0 to change, 0 to destroy.
|
Plan: 1 to import, 0 to add, 0 to change, 0 to destroy.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
"import_and_move": {
|
"import_and_move": {
|
||||||
@ -181,7 +181,7 @@ Terraform will perform the following actions:
|
|||||||
value = "Hello, World!"
|
value = "Hello, World!"
|
||||||
}
|
}
|
||||||
|
|
||||||
Plan: 0 to add, 1 to import, 0 to change, 0 to destroy.
|
Plan: 1 to import, 0 to add, 0 to change, 0 to destroy.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
"import_move_and_update": {
|
"import_move_and_update": {
|
||||||
@ -226,7 +226,7 @@ Terraform will perform the following actions:
|
|||||||
~ value = "Hello, World!" -> "Hello, Universe!"
|
~ value = "Hello, World!" -> "Hello, Universe!"
|
||||||
}
|
}
|
||||||
|
|
||||||
Plan: 0 to add, 1 to import, 1 to change, 0 to destroy.
|
Plan: 1 to import, 0 to add, 1 to change, 0 to destroy.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
"import_and_update": {
|
"import_and_update": {
|
||||||
@ -269,7 +269,7 @@ Terraform will perform the following actions:
|
|||||||
~ value = "Hello, World!" -> "Hello, Universe!"
|
~ value = "Hello, World!" -> "Hello, Universe!"
|
||||||
}
|
}
|
||||||
|
|
||||||
Plan: 0 to add, 1 to import, 1 to change, 0 to destroy.
|
Plan: 1 to import, 0 to add, 1 to change, 0 to destroy.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
"import_and_update_with_no_id": {
|
"import_and_update_with_no_id": {
|
||||||
@ -310,7 +310,7 @@ Terraform will perform the following actions:
|
|||||||
~ value = "Hello, World!" -> "Hello, Universe!"
|
~ value = "Hello, World!" -> "Hello, Universe!"
|
||||||
}
|
}
|
||||||
|
|
||||||
Plan: 0 to add, 1 to import, 1 to change, 0 to destroy.
|
Plan: 1 to import, 0 to add, 1 to change, 0 to destroy.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
"import_and_replace": {
|
"import_and_replace": {
|
||||||
@ -356,7 +356,7 @@ Terraform will perform the following actions:
|
|||||||
value = "Hello, World!"
|
value = "Hello, World!"
|
||||||
}
|
}
|
||||||
|
|
||||||
Plan: 1 to add, 1 to import, 0 to change, 1 to destroy.
|
Plan: 1 to import, 1 to add, 0 to change, 1 to destroy.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user