fix: ResolveS3UidInAllMapFixed exported + called in RequiredParamsMismatch
This commit is contained in:
@@ -1188,7 +1188,7 @@ func (c *UniversalClient) resolveRefSvcParamValues(ctx context.Context, opParams
|
||||
}
|
||||
if len(refById) == 0 {
|
||||
// Даже без refSvcId — резолвим s3Uid внутри map-fixed (соглашение об именах).
|
||||
return c.resolveS3UidInAllMapFixed(params, opParams), nil
|
||||
return c.ResolveS3UidInAllMapFixed(params, opParams), nil
|
||||
}
|
||||
|
||||
resolved := make(map[int]string, len(params))
|
||||
@@ -1219,10 +1219,10 @@ func (c *UniversalClient) resolveRefSvcParamValues(ctx context.Context, opParams
|
||||
return resolved, nil
|
||||
}
|
||||
|
||||
// resolveS3UidInAllMapFixed проходит по всем параметрам и для map-fixed
|
||||
// ResolveS3UidInAllMapFixed проходит по всем параметрам и для map-fixed
|
||||
// резолвит s3Uid-подобные значения в UUID. Используется когда нет ни одного
|
||||
// параметра с refSvcId (ранний выход resolveRefSvcParamValues).
|
||||
func (c *UniversalClient) resolveS3UidInAllMapFixed(params map[int]string, opParams []universalCfsParam) map[int]string {
|
||||
func (c *UniversalClient) ResolveS3UidInAllMapFixed(params map[int]string, opParams []universalCfsParam) map[int]string {
|
||||
result := make(map[int]string, len(params))
|
||||
for paramId, value := range params {
|
||||
if strings.TrimSpace(value) != "" && value != "{}" && strings.HasPrefix(strings.TrimSpace(value), "{") {
|
||||
|
||||
@@ -21,6 +21,8 @@ func RequiredParamsMismatch(ctx context.Context, client *core.UniversalClient, s
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
desiredParamsByID = client.ResolveS3UidInAllMapFixed(desiredParamsByID, nil)
|
||||
|
||||
requiredIDs, err := getServiceRequiredParamIDs(serviceID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user