diff --git a/cmd/node/add.go b/cmd/node/add.go index 51f2eae..524d33b 100644 --- a/cmd/node/add.go +++ b/cmd/node/add.go @@ -142,7 +142,7 @@ func generateAddNodeOptions(c *cli.Context) (*corepb.AddNodeOptions, error) { storage := resourcetypes.RawParams{} if c.IsSet("cpu") { - cpumem["cpu"] = c.String("cpu") + cpumem["cpu"] = c.Int64("cpu") } if c.IsSet("share") { cpumem["share"] = c.String("share") diff --git a/go.mod b/go.mod index 3e3c83d..9e7705a 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/jedib0t/go-pretty/v6 v6.4.6 github.com/juju/errors v1.0.0 github.com/pkg/term v1.1.0 - github.com/projecteru2/core v0.0.0-20230515031536-7fdaea78417e + github.com/projecteru2/core v0.0.0-20230526065243-b1236429a119 github.com/sethgrid/curse v0.0.0-20181231162520-d4ee583ebf0f github.com/sethvargo/go-signalcontext v0.2.1 github.com/sirupsen/logrus v1.9.0 diff --git a/go.sum b/go.sum index 1961365..68ee886 100644 --- a/go.sum +++ b/go.sum @@ -265,8 +265,8 @@ github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk= github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/projecteru2/core v0.0.0-20230515031536-7fdaea78417e h1:7gx3ZANhgXc3yPjecJi/dPhZrOh3LGjn8SI/VK4siQY= -github.com/projecteru2/core v0.0.0-20230515031536-7fdaea78417e/go.mod h1:H7AOnfGM0xI7hYMLG8JpqRVCI+flEX2w/Ro29zSwrQw= +github.com/projecteru2/core v0.0.0-20230526065243-b1236429a119 h1:mqbDvVkoTBnEiw9ZHfZUlGiSZJdr9WBainir0r50C1k= +github.com/projecteru2/core v0.0.0-20230526065243-b1236429a119/go.mod h1:jv+iO2nWa734WHH3WfBFhMgBvWyCQa/VjQCS5dz/6uI= 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=