-
Notifications
You must be signed in to change notification settings - Fork 8
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
140 new resource securityroles 1 #275
Conversation
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.
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.
There was a problem hiding this 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.
There was a problem hiding this 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.
I don't think it matters, as query is privilege.query, if API returns nothing of query, the struct will omit empty. |
…m-provider-netapp-ontap into 140-new-resource-securityroles-1
No description provided.