Although we do still consider these deprecated for 0.12, we'll defer
actually generating warnings for them until a later minor release so that
module authors can retain their quoted identifiers for a period after 0.12
release for backward-compatibility with Terraform 0.11.
Detail:"In this context, keywords are expected literally rather than in quotes. Previous versions of Terraform required quotes, but that usage is now deprecated. Remove the quotes surrounding this keyword to silence this warning.",
Subject:&srcRange,
})
}else{
diags=append(diags,&hcl.Diagnostic{
Severity:hcl.DiagWarning,
Summary:"Quoted references are deprecated",
Detail:"In this context, references are expected literally rather than in quotes. Previous versions of Terraform required quotes, but that usage is now deprecated. Remove the quotes surrounding this reference to silence this warning.",
Subject:&srcRange,
})
}
// For initial release our deprecation warnings are disabled to allow
// a period where modules can be compatible with both old and new
// conventions.
// FIXME: Re-enable these deprecation warnings in a release prior to
// Terraform 0.13 and then remove the shims altogether for 0.13.
/*
ifwantKeyword{
diags=append(diags,&hcl.Diagnostic{
Severity:hcl.DiagWarning,
Summary:"Quoted keywords are deprecated",
Detail:"In this context, keywords are expected literally rather than in quotes. Previous versions of Terraform required quotes, but that usage is now deprecated. Remove the quotes surrounding this keyword to silence this warning.",
Subject:&srcRange,
})
}else{
diags=append(diags,&hcl.Diagnostic{
Severity:hcl.DiagWarning,
Summary:"Quoted references are deprecated",
Detail:"In this context, references are expected literally rather than in quotes. Previous versions of Terraform required quotes, but that usage is now deprecated. Remove the quotes surrounding this reference to silence this warning.",