diff --git a/internal/command/arguments/apply.go b/internal/command/arguments/apply.go index 30896fd8e6..2965f06736 100644 --- a/internal/command/arguments/apply.go +++ b/internal/command/arguments/apply.go @@ -61,7 +61,7 @@ func ParseApply(args []string) (*Apply, tfdiags.Diagnostics) { diags = diags.Append(tfdiags.Sourceless( tfdiags.Warning, "Deprecated flag: -state", - "Use `path` attribute within the `local` backend instead: https://developer.hashicorp.com/terraform/language/v1.10.x/settings/backends/local#path", + `Use the "path" attribute within the "local" backend to specify a file for state storage`, )) } diff --git a/internal/command/arguments/plan.go b/internal/command/arguments/plan.go index e36ed978f2..d4d2a746a4 100644 --- a/internal/command/arguments/plan.go +++ b/internal/command/arguments/plan.go @@ -66,7 +66,7 @@ func ParsePlan(args []string) (*Plan, tfdiags.Diagnostics) { diags = diags.Append(tfdiags.Sourceless( tfdiags.Warning, "Deprecated flag: -state", - "Use `path` attribute within the `local` backend instead: https://developer.hashicorp.com/terraform/language/v1.10.x/settings/backends/local#path", + `Use the "path" attribute within the "local" backend to specify a file for state storage`, )) } diff --git a/internal/command/arguments/refresh.go b/internal/command/arguments/refresh.go index b55e9e2c20..1bc0c6fb15 100644 --- a/internal/command/arguments/refresh.go +++ b/internal/command/arguments/refresh.go @@ -51,7 +51,7 @@ func ParseRefresh(args []string) (*Refresh, tfdiags.Diagnostics) { diags = diags.Append(tfdiags.Sourceless( tfdiags.Warning, "Deprecated flag: -state", - "Use `path` attribute within the `local` backend instead: https://developer.hashicorp.com/terraform/language/v1.10.x/settings/backends/local#path", + `Use the "path" attribute within the "local" backend to specify a file for state storage`, )) } diff --git a/internal/command/testdata/apply/output.jsonlog b/internal/command/testdata/apply/output.jsonlog index 96ce709a8c..a742e943da 100644 --- a/internal/command/testdata/apply/output.jsonlog +++ b/internal/command/testdata/apply/output.jsonlog @@ -1,5 +1,5 @@ {"@level":"info","@message":"Terraform 0.15.0-dev","@module":"terraform.ui","terraform":"0.15.0-dev","type":"version","ui":"0.1.0"} -{"@level":"warn","@message":"Warning: Deprecated flag: -state","@module":"terraform.ui","diagnostic":{"detail":"Use `path` attribute within the `local` backend instead: https://developer.hashicorp.com/terraform/language/v1.10.x/settings/backends/local#path","severity":"warning","summary":"Deprecated flag: -state"},"type":"diagnostic"} +{"@level":"warn","@message":"Warning: Deprecated flag: -state","@module":"terraform.ui","diagnostic":{"detail":"Use the \"path\" attribute within the \"local\" backend to specify a file for state storage","severity":"warning","summary":"Deprecated flag: -state"},"type":"diagnostic"} {"@level":"info","@message":"test_instance.foo: Plan to create","@module":"terraform.ui","change":{"resource":{"addr":"test_instance.foo","module":"","resource":"test_instance.foo","implied_provider":"test","resource_type":"test_instance","resource_name":"foo","resource_key":null},"action":"create"},"type":"planned_change"} {"@level":"info","@message":"Plan: 1 to add, 0 to change, 0 to destroy.","@module":"terraform.ui","changes":{"add":1,"import":0,"change":0,"remove":0,"operation":"plan"},"type":"change_summary"} {"@level":"info","@message":"test_instance.foo: Creating...","@module":"terraform.ui","hook":{"resource":{"addr":"test_instance.foo","module":"","resource":"test_instance.foo","implied_provider":"test","resource_type":"test_instance","resource_name":"foo","resource_key":null},"action":"create"},"type":"apply_start"}