Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.3.0 updates #130

Merged
merged 2 commits into from
Jul 11, 2024
Merged

Conversation

venkat-iblox
Copy link
Collaborator

No description provided.

@venkat-iblox venkat-iblox requested a review from mathewab July 9, 2024 00:06
@venkat-iblox venkat-iblox changed the title Release 1.3.0 Release v1.3.0 updates Jul 9, 2024
Comment on lines -340 to -360

// DefaultTagsHandler converts default_tags attribute to map[string]string
// supports only string values
func DefaultTagsHandler(m map[string]interface{}, d *diag.Diagnostics) map[string]string {
newMap := make(map[string]string, len(m))
for key, value := range m {
strValue := ""

switch v := value.(type) {
case string:
strValue = v
default:
d.AddError("Client error", fmt.Sprintf("Invalid type '%v' for default_tags %s value, only string supported", v, key))
continue
}

newMap[key] = strValue
}

return newMap
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#124 (comment) -> removing the unused function

@venkat-iblox venkat-iblox requested a review from blodha-ib July 10, 2024 20:34
@venkat-iblox venkat-iblox merged commit 7edd13d into infobloxopen:master Jul 11, 2024
3 checks passed
@venkat-iblox venkat-iblox deleted the release-1.3.0 branch July 11, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants