diff --git a/sdk/go/harness/sshCredential.go b/sdk/go/harness/sshCredential.go index f6743868..f5d4fc8b 100644 --- a/sdk/go/harness/sshCredential.go +++ b/sdk/go/harness/sshCredential.go @@ -21,14 +21,14 @@ import ( // import ( // // "github.com/pulumi/pulumi-harness/sdk/go/harness" -// "github.com/pulumi/pulumi-tls/sdk/v1/go/tls" +// "github.com/pulumi/pulumi-tls/sdk/go/tls" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// harnessDeployKey, err := index.NewPrivateKey(ctx, "harness_deploy_key", &index.PrivateKeyArgs{ +// harnessDeployKey, err := tls.NewPrivateKey(ctx, "harness_deploy_key", &tls.PrivateKeyArgs{ // Algorithm: "RSA", // RsaBits: 4096, // }) diff --git a/sdk/python/pulumi_harness/_utilities.py b/sdk/python/pulumi_harness/_utilities.py index 3c92f79b..6c3b994e 100644 --- a/sdk/python/pulumi_harness/_utilities.py +++ b/sdk/python/pulumi_harness/_utilities.py @@ -100,10 +100,6 @@ def _get_semver_version(): _version = _get_semver_version() _version_str = str(_version) - -def get_version(): - return _version_str - def get_resource_opts_defaults() -> pulumi.ResourceOptions: return pulumi.ResourceOptions( version=get_version(), @@ -324,3 +320,6 @@ def deprecated_fn(*args, **kwargs): def get_plugin_download_url(): return "github://api.github.com/pulumi" + +def get_version(): + return _version_str