| 540 | } |
| 541 | |
| 542 | func getCommonVariableTemplate(opts *UpdateOptions, tenantVariables *[]variables.TenantCommonVariable) (*actiontemplates.ActionTemplateParameter, error) { |
| 543 | for _, v := range *tenantVariables { |
| 544 | if strings.EqualFold(v.LibraryVariableSetName, opts.LibraryVariableSet.Value) && strings.EqualFold(v.Template.Name, opts.Name.Value) { |
| 545 | return &v.Template, nil |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | return nil, fmt.Errorf("cannot find variable '%s'", opts.Name.Value) |
| 550 | } |
| 551 | |
| 552 | func getProjectVariableTemplate(opts *UpdateOptions, tenantVariables *[]variables.TenantProjectVariable) (*actiontemplates.ActionTemplateParameter, error) { |
| 553 | for _, v := range *tenantVariables { |