Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Rainbond2
Commits
16e6bc44
Commit
16e6bc44
authored
5 years ago
by
凡羊羊
Browse files
Options
Download
Email Patches
Plain Diff
[FIX] fix issue bug(#330) check if nil or not before use config
parent
d4a49a18
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
worker/appm/conversion/plugin.go
+5
-3
worker/appm/conversion/plugin.go
with
5 additions
and
3 deletions
+5
-3
worker/appm/conversion/plugin.go
+
5
-
3
View file @
16e6bc44
...
...
@@ -128,11 +128,13 @@ func conversionServicePlugin(as *typesv1.AppService, dbmanager db.Manager) ([]v1
if
err
!=
nil
&&
err
!=
gorm
.
ErrRecordNotFound
{
logrus
.
Errorf
(
"get service plugin config from db failure %s"
,
err
.
Error
())
}
if
config
!=
nil
{
var
resourceConfig
api_model
.
ResourceSpec
if
err
:=
json
.
Unmarshal
([]
byte
(
config
.
ConfigStr
),
&
resourceConfig
);
err
==
nil
{
inboundPluginConfig
=
&
resourceConfig
}
}
}
//create plugin config to configmap
for
i
:=
range
appPlugins
{
ApplyPluginConfig
(
as
,
appPlugins
[
i
],
dbmanager
,
inboundPluginConfig
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help