From 25da7ecd4f79a41a42799e7d408bee04696b27f0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 18:48:59 +0000 Subject: [PATCH] build(deps): bump github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 Bumps [github.com/open-amt-cloud-toolkit/go-wsman-messages/v2](https://github.com/open-amt-cloud-toolkit/go-wsman-messages) from 2.5.2 to 2.7.1. - [Release notes](https://github.com/open-amt-cloud-toolkit/go-wsman-messages/releases) - [Changelog](https://github.com/open-amt-cloud-toolkit/go-wsman-messages/blob/main/.releaserc.json) - [Commits](https://github.com/open-amt-cloud-toolkit/go-wsman-messages/compare/v2.5.2...v2.7.1) --- updated-dependencies: - dependency-name: github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- internal/local/amt/wsman.go | 2 +- samples/dotnet/client.cs | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index a6d0a080..0f1f06fb 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/gorilla/websocket v1.5.1 github.com/hirochachacha/go-smb2 v1.1.0 github.com/ilyakaznacheev/cleanenv v1.5.0 - github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.5.2 + github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.7.1 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 golang.org/x/sys v0.20.0 diff --git a/go.sum b/go.sum index 0e89c4ab..372740f4 100644 --- a/go.sum +++ b/go.sum @@ -15,8 +15,8 @@ github.com/ilyakaznacheev/cleanenv v1.5.0 h1:0VNZXggJE2OYdXE87bfSSwGxeiGt9moSR2l github.com/ilyakaznacheev/cleanenv v1.5.0/go.mod h1:a5aDzaJrLCQZsazHol1w8InnDcOX0OColm64SlIi6gk= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= -github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.5.2 h1:FDZoYaUfqidDuybd3muerAscJonjSMzcU3J+Ayo7i6I= -github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.5.2/go.mod h1:jdnbKqKRs4AYG8H7RZF/ss45D93+CfGY7m8esTTbDTs= +github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.7.1 h1:NTSZCy/fAd0susl18MyLxDM3WHAa9iCRMWS4WtR3gaA= +github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.7.1/go.mod h1:jdnbKqKRs4AYG8H7RZF/ss45D93+CfGY7m8esTTbDTs= 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/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= diff --git a/internal/local/amt/wsman.go b/internal/local/amt/wsman.go index 3ff76bc4..cbd73b5b 100644 --- a/internal/local/amt/wsman.go +++ b/internal/local/amt/wsman.go @@ -215,7 +215,7 @@ func (g *GoWSMANMessages) GetCredentialRelationships() ([]credential.CredentialC if err != nil { return nil, err } - return response.Body.PullResponse.Items, nil + return response.Body.PullResponse.Items.CredentialContext, nil } func (g *GoWSMANMessages) GetConcreteDependencies() ([]concrete.ConcreteDependency, error) { response, err := g.wsmanMessages.CIM.ConcreteDependency.Enumerate() diff --git a/samples/dotnet/client.cs b/samples/dotnet/client.cs index 5bf8c6a1..b6cdf48c 100644 --- a/samples/dotnet/client.cs +++ b/samples/dotnet/client.cs @@ -39,6 +39,7 @@ static void Main(string[] args) // string res = "activate -u wss://192.168.1.96/activate -n -profile Test_Profile"; // string res = "amtinfo"; + res = "amtinfo"; IntPtr output = IntPtr.Zero; Console.WriteLine("... CALLING rpcExec with argument string: " + res); returnCode = rpcExec(Encoding.ASCII.GetBytes(res), ref output);