Skip to content

Commit

Permalink
Updates LXD dependency to the latest stable release (3.18) from October
Browse files Browse the repository at this point in the history
2019.
  • Loading branch information
manadart committed Jan 20, 2020
1 parent fc33d09 commit e4d82ea
Show file tree
Hide file tree
Showing 6 changed files with 1,120 additions and 29 deletions.
16 changes: 4 additions & 12 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

[[constraint]]
name = "github.com/lxc/lxd"
revision = "4c2bbb608e7a90a9f175a566b9e638069424f0f7"
revision = "3a5f63bc49591c4cb62268f210b07ff8e74b727d"

[[constraint]]
name = "github.com/oracle/oci-go-sdk"
Expand Down
4 changes: 2 additions & 2 deletions container/lxd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/juju/errors"
"github.com/juju/retry"
"github.com/juju/utils/arch"
"github.com/lxc/lxd/shared"
"github.com/lxc/lxd/shared/api"
"github.com/lxc/lxd/shared/units"
"github.com/lxc/lxd/shared/version"

"github.com/juju/juju/core/constraints"
Expand Down Expand Up @@ -104,7 +104,7 @@ func (c *Container) Mem() uint {
return 0
}

bytes, err := shared.ParseByteSizeString(v)
bytes, err := units.ParseByteSizeString(v)
if err != nil {
logger.Errorf("failed to parse %q into bytes, ignoring err: %s", v, err)
return 0
Expand Down
8 changes: 8 additions & 0 deletions container/lxd/mocks/clock_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e4d82ea

Please sign in to comment.