command/plan: better output
This commit is contained in:
parent
832211c17a
commit
e0d3098d50
|
@ -105,7 +105,11 @@ func (c *PlanCommand) Run(args []string) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
if plan.Diff.Empty() {
|
if plan.Diff.Empty() {
|
||||||
c.Ui.Output("No changes. Infrastructure is up-to-date.")
|
c.Ui.Output(
|
||||||
|
"No changes. Infrastructure is up-to-date. This means that Terraform\n" +
|
||||||
|
"could not detect any differences between your configuration and\n" +
|
||||||
|
"the real physical resources that exist. As a result, Terraform\n" +
|
||||||
|
"doesn't need to do anything.")
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +127,7 @@ func (c *PlanCommand) Run(args []string) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
if outPath == "" {
|
if outPath == "" {
|
||||||
c.Ui.Output(strings.TrimSpace(planHeaderNoOutput)+"\n")
|
c.Ui.Output(strings.TrimSpace(planHeaderNoOutput) + "\n")
|
||||||
} else {
|
} else {
|
||||||
c.Ui.Output(fmt.Sprintf(
|
c.Ui.Output(fmt.Sprintf(
|
||||||
strings.TrimSpace(planHeaderYesOutput)+"\n",
|
strings.TrimSpace(planHeaderYesOutput)+"\n",
|
||||||
|
|
Loading…
Reference in New Issue