From 0782348c2932211a9c8591b793c400a108c5f12d Mon Sep 17 00:00:00 2001 From: Paolo Calao Date: Fri, 18 Feb 2022 09:39:41 +0100 Subject: [PATCH] Fix config mapstructure tag --- internal/config/credentials.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/credentials.go b/internal/config/credentials.go index 7f2e571a..e6a71cc7 100644 --- a/internal/config/credentials.go +++ b/internal/config/credentials.go @@ -50,8 +50,8 @@ func SetEmptyCredentials(settings *viper.Viper) { // Credentials contains the parameters of Arduino IoT Cloud credentials. type Credentials struct { - Client string `map-structure:"client"` // Client ID of the user - Secret string `map-structure:"secret"` // Secret ID of the user, unique for each Client ID + Client string `mapstructure:"client"` // Client ID of the user + Secret string `mapstructure:"secret"` // Secret ID of the user, unique for each Client ID } // Validate the credentials.