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

Commit

Permalink
[#184] use first aci of pod as default params for app node
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Aug 9, 2016
1 parent f0180da commit 6c3dc86
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin-dgr/pod-build.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,8 @@ func (p *Pod) processAci(e common.RuntimeApp) (*schema.RuntimeApp, error) {

func (p *Pod) fillRuntimeAppFromDependencies(e *common.RuntimeApp) error {
fields := p.fields.WithField("aci", e.Name)
if len(e.Dependencies) > 1 && len(e.App.Exec) == 0 {
return errs.WithF(fields, "There is more than 1 dependency, manifest aci must be set explicitly")
}

if len(e.Dependencies) == 1 {
if len(e.Dependencies) >= 1 {
Home.Rkt.Fetch(e.Dependencies[0].String())
manifestStr, err := Home.Rkt.CatManifest(e.Dependencies[0].String())
if err != nil {
Expand Down

0 comments on commit 6c3dc86

Please sign in to comment.