Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
fix: add scanID to plugin cont names
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Sep 7, 2018
1 parent a9b306a commit 1adfd6a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .release/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.3.21
v0.3.22
4 changes: 2 additions & 2 deletions config/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#######################################################################

title = "Malice Runtime Configuration"
version = "v0.3.21"
version = "v0.3.22"

[author]
name = "blacktop"
Expand Down
18 changes: 9 additions & 9 deletions plugins/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ func (plugin Plugin) StartPlugin(docker *client.Docker, arg string, scanID strin
// env = append(env, "MALICE_ELASTICSEARCH="+utils.Getopt("MALICE_ELASTICSEARCH", getDbAddr()))

contJSON, err := container.Start(
docker, // docker *client.Docker,
cmd, // cmd strslice.StrSlice,
plugin.Name, // name string,
plugin.Image, // image string,
logs, // logs bool,
binds, // binds []string,
nil, // portBindings nat.PortMap,
links, // links []string,
env, // env []string,
docker, // docker *client.Docker,
cmd, // cmd strslice.StrSlice,
plugin.Name+scanID, // name string,
plugin.Image, // image string,
logs, // logs bool,
binds, // binds []string,
nil, // portBindings nat.PortMap,
links, // links []string,
env, // env []string,
)
log.WithFields(log.Fields{
"name": contJSON.Name,
Expand Down

0 comments on commit 1adfd6a

Please sign in to comment.