Skip to content

Commit

Permalink
meraki_debug no longer works #179 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fmunozmiranda committed Nov 19, 2024
1 parent cd17916 commit b1708e5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ func (p *MerakiProvider) Configure(ctx context.Context, req provider.ConfigureRe
)
return
}
if data.Debug.IsUnknown() || data.Debug.IsNull() {
// resp.Diagnostics.AddAttributeError(
// path.Root("debug"),
// "Unknown Meraki API debug",
// "The provider cannot create the Meraki API client as there is an unknown configuration value for the Meraki API Debug. "+
// "Either target apply the source of the value first, set the value statically in the configuration, or use the MERAKI_DEBUG environment variable.",
// )
// return
data.Debug = types.StringValue("false")
}
// if data.Debug.IsUnknown() || data.Debug.IsNull() {
// // resp.Diagnostics.AddAttributeError(
// // path.Root("debug"),
// // "Unknown Meraki API debug",
// // "The provider cannot create the Meraki API client as there is an unknown configuration value for the Meraki API Debug. "+
// // "Either target apply the source of the value first, set the value statically in the configuration, or use the MERAKI_DEBUG environment variable.",
// // )
// // return
// data.Debug = types.StringValue("false")
// }
if resp.Diagnostics.HasError() {
return
}
Expand All @@ -143,9 +143,9 @@ func (p *MerakiProvider) Configure(ctx context.Context, req provider.ConfigureRe
if !data.MerakiDashboardApiKey.IsNull() && !data.MerakiDashboardApiKey.IsUnknown() {
merakiDashboardApiKey = data.MerakiDashboardApiKey.ValueString()
}
// if !data.Debug.IsNull() && !data.Debug.IsUnknown() {
// debug = data.Debug.ValueString()
// }
if !data.Debug.IsNull() && !data.Debug.IsUnknown() {
debug = data.Debug.ValueString()
}

// if !data.SSLVerify.IsNull() {
// sslVerify = data.SSLVerify.ValueString()
Expand Down

0 comments on commit b1708e5

Please sign in to comment.