From 0d9d515d7223e7c2bb7ce6775bb7e5ab51154098 Mon Sep 17 00:00:00 2001 From: madhavilosetty-intel Date: Wed, 6 Nov 2024 15:48:05 -0700 Subject: [PATCH] feat: adds wireless synchronization option to config (#431) --- go.mod | 2 +- go.sum | 2 ++ internal/usecase/profiles/usecase.go | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index e180f5f5..984e61ab 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/gorilla/websocket v1.5.3 github.com/ilyakaznacheev/cleanenv v1.5.0 github.com/jackc/pgx/v5 v5.7.1 - github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.16.7 + github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.17.0 github.com/prometheus/client_golang v1.20.5 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 diff --git a/go.sum b/go.sum index a3f2e268..8e397eab 100644 --- a/go.sum +++ b/go.sum @@ -185,6 +185,8 @@ github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJm github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.16.7 h1:fgztTxllw7+GvSj6KZ9m41g0M8n81/NP4zjPr6IrBCI= github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.16.7/go.mod h1:ZFZRyYEYWs2ngCuwzK+n+vc0ga1Hh4BRJYBiwXxDTD0= +github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.17.0 h1:2iDhRp5Td6aeCNjCPg6tJrtn2pcdjOhrXv/JV7CwfTM= +github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.17.0/go.mod h1:ZFZRyYEYWs2ngCuwzK+n+vc0ga1Hh4BRJYBiwXxDTD0= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= diff --git a/internal/usecase/profiles/usecase.go b/internal/usecase/profiles/usecase.go index 124a0383..9ba2e600 100644 --- a/internal/usecase/profiles/usecase.go +++ b/internal/usecase/profiles/usecase.go @@ -283,7 +283,8 @@ func (uc *UseCase) BuildConfigurationObject(profileName string, data *entity.Pro SharedStaticIP: false, }, Wireless: config.Wireless{ - Profiles: wifiConfigs, + WiFiSyncEnabled: data.LocalWiFiSyncEnabled, + Profiles: wifiConfigs, }, }, Redirection: config.Redirection{