Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Fix: use all attributes to render the manifest (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
obiesmans authored and n0rad committed Aug 25, 2017
1 parent 8d5ab47 commit ccc2b1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion work/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/n0rad/go-erlog/data"
"github.com/n0rad/go-erlog/errs"
"github.com/n0rad/go-erlog/logs"
"github.com/peterbourgon/mergemap"
"golang.org/x/net/context"
"gopkg.in/yaml.v2"
)
Expand Down Expand Up @@ -340,7 +341,8 @@ func (s *Service) renderManifest() ([]byte, error) {

manifest, err := ioutil.TempFile(os.TempDir(), "prefix")
defer os.Remove(manifest.Name())
err = t.RunTemplate(manifest.Name(), s.manifestAttributes, true)

err = t.RunTemplate(manifest.Name(), mergemap.Merge(s.manifestAttributes, s.attributes), true)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ccc2b1a

Please sign in to comment.