Skip to content

Commit

Permalink
feat: build image with ID
Browse files Browse the repository at this point in the history
  • Loading branch information
anrs authored and anrs committed May 14, 2021
1 parent ac19e39 commit 582a6f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/virt/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (v *Virt) ImageBuildFromExist(ctx context.Context, ID, name, user string) (
return "", err
}

return uimg.Name, nil
return uimg.ID, nil
}

// ImageBuildCachePrune prunes cached one.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ require (
github.com/opencontainers/runc v0.1.1 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pkg/errors v0.9.1
github.com/projecteru2/libyavirt v0.0.0-20210510090553-13d6d50dae11
github.com/projecteru2/libyavirt v0.0.0-20210514093713-959b2e232319
github.com/prometheus/client_golang v1.7.1
github.com/sanity-io/litter v1.3.0
github.com/sethvargo/go-signalcontext v0.1.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ github.com/projecteru2/libyavirt v0.0.0-20210506084619-9ba72c7c2ae3 h1:HPjZPr0Pc
github.com/projecteru2/libyavirt v0.0.0-20210506084619-9ba72c7c2ae3/go.mod h1:9/SNmdphwl12ubwihkRa9YtOozM6liYLDxsricra1mY=
github.com/projecteru2/libyavirt v0.0.0-20210510090553-13d6d50dae11 h1:tq7Z0y1WyCNZMGnia8buu5Ju1ktFhQ3m0Zp+BFB+m3I=
github.com/projecteru2/libyavirt v0.0.0-20210510090553-13d6d50dae11/go.mod h1:9/SNmdphwl12ubwihkRa9YtOozM6liYLDxsricra1mY=
github.com/projecteru2/libyavirt v0.0.0-20210514093713-959b2e232319 h1:YS2bKys5sRKJMBDKrjsJQGVN+V6NJsSF+vcSg85ll5k=
github.com/projecteru2/libyavirt v0.0.0-20210514093713-959b2e232319/go.mod h1:9/SNmdphwl12ubwihkRa9YtOozM6liYLDxsricra1mY=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g=
Expand Down

0 comments on commit 582a6f0

Please sign in to comment.