use yaml parameter to restrict local plugin execution

This commit is contained in:
Brad Rydzewski
2017-01-20 14:16:15 +07:00
parent 9df2a43525
commit def995b164
6 changed files with 27 additions and 41 deletions

View File

@@ -29,7 +29,6 @@ type Agent struct {
Platform string
Namespace string
Extension []string
Disable []string
Escalate []string
Netrc []string
Local string
@@ -187,7 +186,7 @@ func (a *Agent) prep(w *model.Work) (*yaml.Config, error) {
transform.PluginParams(conf)
if a.Local != "" {
transform.PluginDisable(conf, a.Disable)
transform.PluginDisable(conf, true)
transform.ImageVolume(conf, []string{a.Local + ":" + conf.Workspace.Path})
}