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

140 new resource securityroles 1 #275

Merged
merged 19 commits into from
Sep 16, 2024

Conversation

wenjun666
Copy link
Contributor

No description provided.

@wenjun666 wenjun666 linked an issue Aug 26, 2024 that may be closed by this pull request
if deleteDefaultPrivileges {
err = interfaces.DeleteSecurityRolePrivileges(errorHandler, *client, privilege.Path, data.Name.ValueString(), restInfo.Owner.Id)
if err != nil {
errorHandler.MakeAndReportError("error deleting default security_role privileges", "error on DELETE API created default privileges: {path: 'DEFAULT', access: 'none', query: ''}")

Check warning

Code scanning / gosec

Errors unhandled.

Errors unhandled.
log.Printf("going to create privilege : %v", planPrivilege)
err = interfaces.CreateSecurityRolePrivileges(errorHandler, *client, planPrivilege, plan.Name.ValueString(), svm.UUID)
if err != nil {
errorHandler.MakeAndReportError("error deleting default security_role privileges", fmt.Sprint("error on DELETE API created default privileges: {path: 'DEFAULT', access: 'none', query: ''} :", err))

Check warning

Code scanning / gosec

Errors unhandled.

Errors unhandled.
CHANGELOG.md Outdated Show resolved Hide resolved
docs/resources/security_role.md Outdated Show resolved Hide resolved
docs/resources/security_role.md Outdated Show resolved Hide resolved
examples/resources/netapp-ontap_security_role/resource.tf Outdated Show resolved Hide resolved
Copy link
Contributor

@chuyich chuyich left a comment

Choose a reason for hiding this comment

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

Besides the commented parts. Maybe add the change based on agreed resource naming? Or do it later is ok, too.

docs/resources/security_role.md Outdated Show resolved Hide resolved
docs/resources/security_role.md Outdated Show resolved Hide resolved
Copy link
Contributor

@chuyich chuyich left a comment

Choose a reason for hiding this comment

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

Wondered if query is part of the privilege in this resource. Please double check it.

@wenjun666
Copy link
Contributor Author

Wondered if query is part of the privilege in this resource. Please double check it.

I don't think it matters, as query is privilege.query, if API returns nothing of query, the struct will omit empty.

@wenjun666 wenjun666 merged commit 57eed30 into integration/main Sep 16, 2024
7 checks passed
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.

[New Resource]: /security/roles
4 participants