@@ -280,24 +280,24 @@ func (api *API) getWorkspaceOwnerData(
280
280
// returns a warning diagnostic. Only versions 1.5+ return the module & plan data
281
281
// required.
282
282
func parameterProvisionerVersionDiagnostic (tf database.TemplateVersionTerraformValue ) hcl.Diagnostics {
283
- missingMetaData := hcl.Diagnostic {
283
+ missingMetadata := hcl.Diagnostic {
284
284
Severity : hcl .DiagError ,
285
285
Summary : "This template version is missing required metadata to support dynamic parameters. Go back to the classic creation flow." ,
286
286
Detail : "To restore full functionality, please re-import the terraform as a new template version." ,
287
287
}
288
288
289
289
if tf .ProvisionerdVersion == "" {
290
- return hcl.Diagnostics {& missingMetaData }
290
+ return hcl.Diagnostics {& missingMetadata }
291
291
}
292
292
293
293
major , minor , err := apiversion .Parse (tf .ProvisionerdVersion )
294
294
if err != nil || tf .ProvisionerdVersion == "" {
295
- return hcl.Diagnostics {& missingMetaData }
295
+ return hcl.Diagnostics {& missingMetadata }
296
296
} 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. " +
298
298
"Some options may be missing or incorrect. " +
299
299
"Please contact an administrator to update the provisioner and re-import the template version."
300
- return hcl.Diagnostics {& missingMetaData }
300
+ return hcl.Diagnostics {& missingMetadata }
301
301
}
302
302
303
303
return nil
0 commit comments