diff --git a/Makefile b/Makefile index 2e3a7ce..3134f7e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION := 1.0.4 +VERSION := 1.0.5 PACK := libp2p PROJECT := github.com/LuxChanLu/pulumi-${PACK} diff --git a/provider/pkg/provider/key.go b/provider/pkg/provider/key.go index b22acde..cb6aad2 100644 --- a/provider/pkg/provider/key.go +++ b/provider/pkg/provider/key.go @@ -48,7 +48,7 @@ func NewKey(ctx *pulumi.Context, } generated := pulumi.All(args.Type, args.Bits).ApplyT(func(args []interface{}) ([]string, error) { - priv, pub, err := crypto.GenerateKeyPair(keyTypeMapping[KeyType(args[0].(string))], args[0].(int)) + priv, pub, err := crypto.GenerateKeyPair(keyTypeMapping[KeyType(args[0].(string))], args[1].(int)) if err != nil { return nil, err } diff --git a/provider/pkg/version/version.go b/provider/pkg/version/version.go index 1197195..54b540a 100644 --- a/provider/pkg/version/version.go +++ b/provider/pkg/version/version.go @@ -1,3 +1,3 @@ package version -var Version string = "1.0.3" +var Version string = "1.0.5"