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

Commit

Permalink
fix download of aci
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Jul 30, 2015
1 parent 9c79a8e commit d2188ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builder/cnt.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"os/exec"
"io"
"github.com/appc/spec/discovery"
"runtime"
)

const (
Expand Down Expand Up @@ -269,10 +268,10 @@ func (cnt *Cnt) processFrom() {

app, err := discovery.NewAppFromString(cnt.manifest.From)
if app.Labels["os"] == "" {
app.Labels["os"] = runtime.GOOS
app.Labels["os"] = "linux"
}
if app.Labels["arch"] == "" {
app.Labels["arch"] = runtime.GOARCH
app.Labels["arch"] = "amd64"
}

endpoint, _, err := discovery.DiscoverEndpoints(*app, false)
Expand Down

0 comments on commit d2188ad

Please sign in to comment.