command/diff: output if no changes
This commit is contained in:
parent
1449d8a510
commit
74d75e87d6
|
@ -75,7 +75,11 @@ func (c *DiffCommand) Run(args []string) int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Ui.Output(strings.TrimSpace(diff.String()))
|
if diff.Empty() {
|
||||||
|
c.Ui.Output("No changes. Infrastructure is up-to-date.")
|
||||||
|
} else {
|
||||||
|
c.Ui.Output(strings.TrimSpace(diff.String()))
|
||||||
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue