mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
Merge branch 'feature/sunanzhi/1.6' into 'main'
fix: resolve null pointer due to empty validator and comment out release model code See merge request apipark/APIPark!242
This commit is contained in:
@@ -58,6 +58,10 @@ func (c *Config) GenConfig(target string, origin string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if c.validator == nil {
|
||||
c.validator = ParamValidator(nil)
|
||||
}
|
||||
|
||||
return c.validator.GenConfig(targetData, originData)
|
||||
}
|
||||
|
||||
|
||||
+4
-1
@@ -637,7 +637,7 @@ func (i *imlProviderModule) UpdateProviderConfig(ctx context.Context, id string,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
/**
|
||||
if *pInfo.Status == 0 {
|
||||
return i.syncGateway(ctx, cluster.DefaultClusterID, []*gateway.DynamicRelease{
|
||||
{
|
||||
@@ -672,6 +672,9 @@ func (i *imlProviderModule) UpdateProviderConfig(ctx context.Context, id string,
|
||||
Attr: cfg,
|
||||
}, newKey(defaultKey),
|
||||
}, true)
|
||||
*/
|
||||
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user