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()