@@ -280,24 +280,24 @@ func (api *API) getWorkspaceOwnerData(
280280// returns a warning diagnostic. Only versions 1.5+ return the module & plan data
281281// required.
282282func parameterProvisionerVersionDiagnostic (tf database.TemplateVersionTerraformValue ) hcl.Diagnostics {
283- missingMetaData := hcl.Diagnostic {
283+ missingMetadata := hcl.Diagnostic {
284284 Severity : hcl .DiagError ,
285285 Summary : "This template version is missing required metadata to support dynamic parameters. Go back to the classic creation flow." ,
286286 Detail : "To restore full functionality, please re-import the terraform as a new template version." ,
287287 }
288288
289289 if tf .ProvisionerdVersion == "" {
290- return hcl.Diagnostics {& missingMetaData }
290+ return hcl.Diagnostics {& missingMetadata }
291291 }
292292
293293 major , minor , err := apiversion .Parse (tf .ProvisionerdVersion )
294294 if err != nil || tf .ProvisionerdVersion == "" {
295- return hcl.Diagnostics {& missingMetaData }
295+ return hcl.Diagnostics {& missingMetadata }
296296 } else if major < 1 || (major == 1 && minor < 5 ) {
297- missingMetaData .Detail = "This template version requires provisioner v1.5 or newer to support dynamic parameters. " +
297+ missingMetadata .Detail = "This template version does not support dynamic parameters. " +
298298 "Some options may be missing or incorrect. " +
299299 "Please contact an administrator to update the provisioner and re-import the template version."
300- return hcl.Diagnostics {& missingMetaData }
300+ return hcl.Diagnostics {& missingMetadata }
301301 }
302302
303303 return nil
0 commit comments