core: Make refresh message explicitly point out lack of state persist

Helps make clear to users that refresh only occurs in-memory during plan

per @jen20's recommendation
This commit is contained in:
Paul Hinze 2016-05-24 17:51:18 -05:00
parent ae73aa2fb4
commit aee1520ac5
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ func (c *PlanCommand) Run(args []string) int {
}
if refresh {
c.Ui.Output("Refreshing Terraform state prior to plan...\n")
c.Ui.Output("Refreshing Terraform state in-memory prior to plan...")
c.Ui.Output("The refreshed state will be used to calculate this plan, but")
c.Ui.Output("will not be persisted to local or remote state storage.\n")
_, err := ctx.Refresh()
if err != nil {
c.Ui.Error(fmt.Sprintf("Error refreshing state: %s", err))