command/push: update copy for remote state error
This commit is contained in:
parent
38e84f1a78
commit
25312c8985
|
@ -110,11 +110,11 @@ func (c *PushCommand) Run(args []string) int {
|
||||||
// We require a non-local backend
|
// We require a non-local backend
|
||||||
if c.IsLocalBackend(b) {
|
if c.IsLocalBackend(b) {
|
||||||
c.Ui.Error(
|
c.Ui.Error(
|
||||||
"Remote state is not enabled. For Atlas to run Terraform\n" +
|
"A remote backend is not enabled. For Atlas to run Terraform\n" +
|
||||||
"for you, remote state must be used and configured. Remote \n" +
|
"for you, remote state must be used and configured. Remote \n" +
|
||||||
"state via any backend is accepted, not just Atlas. To\n" +
|
"state via any backend is accepted, not just Atlas. To configure\n" +
|
||||||
"configure remote state, use the `terraform remote config`\n" +
|
"a backend, please see the documentation at the URL below:\n\n" +
|
||||||
"command.")
|
"https://www.terraform.io/docs/state/remote.html")
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -774,7 +774,7 @@ func TestPush_noRemoteState(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
errStr := ui.ErrorWriter.String()
|
errStr := ui.ErrorWriter.String()
|
||||||
if !strings.Contains(errStr, "Remote state") {
|
if !strings.Contains(errStr, "remote backend") {
|
||||||
t.Fatalf("bad: %s", errStr)
|
t.Fatalf("bad: %s", errStr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue