Skip to content

Commit

Permalink
Fix docker provider builder. (#21118)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse authored Sep 16, 2020
1 parent f017e24 commit 949e123
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,12 @@ func (c *dynamicProvider) Run(comm composable.DynamicProviderComm) error {
}

// DynamicProviderBuilder builds the dynamic provider.
func DynamicProviderBuilder(c *config.Config) (composable.DynamicProvider, error) {
logger, err := logger.New("composable.providers.docker")
if err != nil {
return nil, err
}
func DynamicProviderBuilder(logger *logger.Logger, c *config.Config) (composable.DynamicProvider, error) {
var cfg Config
if c == nil {
c = config.New()
}
err = c.Unpack(&cfg)
err := c.Unpack(&cfg)
if err != nil {
return nil, errors.New(err, "failed to unpack configuration")
}
Expand Down

0 comments on commit 949e123

Please sign in to comment.