add oxford comma back in

Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
pull/37545/head
Daniel Schmidt 6 months ago
parent c8f88d1a31
commit f60da0132a

@ -312,7 +312,7 @@ func (s *Scope) evalContext(refs []*addrs.Reference, selfAddr addrs.Referenceabl
// this codepath doesn't really "know about". If the "self"
// object starts being supported in more contexts later then
// we'll need to adjust this message.
Detail: `The "self" object is not available in this context. This object can be used only in resource provisioner, connection and postcondition blocks.`,
Detail: `The "self" object is not available in this context. This object can be used only in resource provisioner, connection, and postcondition blocks.`,
Subject: ref.SourceRange.ToHCL().Ptr(),
})
continue

@ -4195,7 +4195,7 @@ func TestContext2Plan_preconditionErrors(t *testing.T) {
{
"self.value",
`Invalid "self" reference`,
"only in resource provisioner, connection and postcondition blocks",
"only in resource provisioner, connection, and postcondition blocks",
},
{
"data.foo.bar",

@ -64,7 +64,7 @@ func (e *Evaluator) staticValidateReference(ref *addrs.Reference, modCfg *config
// this codepath doesn't really "know about". If the "self"
// object starts being supported in more contexts later then
// we'll need to adjust this message.
Detail: `The "self" object is not available in this context. This object can be used only in resource provisioner, connection and postcondition blocks.`,
Detail: `The "self" object is not available in this context. This object can be used only in resource provisioner, connection, and postcondition blocks.`,
Subject: ref.SourceRange.ToHCL().Ptr(),
})
return diags

Loading…
Cancel
Save