Skip to content

[Bug]: netapp-ontap security does not assign proper role #605

@billkrolczyk444

Description

@billkrolczyk444

Terraform Core Version

6.8.3

ONTAP Provider Version

2.3.0

Affected Resource(s)

netapp-ontpap provider. when creating a security config using terraform, it assigns the admin role and not readonly as defined in the code. it does successfully create both security items but does not separate the roles.

Expected Behavior

it should have assigned the readonly role to the 2nd one

Actual Behavior

assigned admin role to the 2nd role

Relevant Error/Panic Output Snippet

Terraform Configuration Files

resource "netapp-ontap_security_account" "security_account" {

required to know which system to interface with

for_each = var.cvo_instances
cx_profile_name = each.value.cvo_name
name = "group1"
applications = [{
application = "http"
authentication_methods = ["domain"]
domain = "ourdomain"
role = "admin"
}]
}

resource "netapp-ontap_security_account" "security_account1" {

required to know which system to interface with

for_each = var.cvo_instances
cx_profile_name = each.value.cvo_name
name = "group2"
applications = [{
application = "http"
authentication_methods = ["domain"]
domain = "ourdomain"
role = "readonly"
}]
}

Steps to Reproduce

ran code using github actions

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions