oci-ansible-collection icon indicating copy to clipboard operation
oci-ansible-collection copied to clipboard

oracle.oci.oci_identity_compartment allows for creation of compartment with the same name in a tenancy

Open kmj251 opened this issue 1 year ago • 1 comments

Issue Report

The documentation of this module states "You must also specify a name for the compartment, which must be unique across all compartments in your tenancy." This is not the case. One can create a compartment with the same name in different parent compartments.

Expected behavior Fix the documentation or fix the module to enforce the documentation. Since the module can create a compartment with the same name in the same tenancy if it's not in the same compartment, this must not be an OCI limitation, and this is just a documentation problem.

A clear and concise description of what you expected to happen.

Environment

  • OS version: Ubuntu 22.04

  • Ansible version: 2.15.3

  • OCI Python SDK version: 2.112.1

  • OCI Ansible Modules version: 4.30.0

Ansible playbook to reproduce the issue

kmj251 avatar Nov 15 '23 14:11 kmj251