oracle/oci-ansible-collection

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

Opened this issue · 1 comments

kmj251 commented

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 We generate the module documentation from service specs. We don't modify or add anything in documentation from our side. Can you confirm if it is just documentation issue?