Inspect requirements by profile identity
This commit is contained in:
@@ -54,7 +54,7 @@ func (r *Runner) InspectRequirements(
|
||||
if strings.TrimSpace(selectedProfileID) == "" {
|
||||
return nil, fmt.Errorf("%w: %w: profile id is required either in request or prompt default_profile", ErrInvalidRequest, ErrProfileRequired)
|
||||
}
|
||||
profileSelection, err := r.resolveProfileSelection(ctx, selectedProfileID)
|
||||
profileIdentity, err := r.resolveProfileIdentity(ctx, selectedProfileID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -74,6 +74,6 @@ func (r *Runner) InspectRequirements(
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("%w: %w", ErrPromptLoad, err)
|
||||
}
|
||||
inspection.ProfileID = profileSelection.id
|
||||
inspection.ProfileID = profileIdentity
|
||||
return &inspection, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user