Closed sandorkazi closed 3 years ago
I have a branch where I introduced a skip_subcompartment atttribute which can be provided for any compartment listed. May I provide that as a solution?
@sandorkazi , Thanks for creating the issue. We will create internal ticket to track the issue and will update it here.
@sandorkazi If your solution is ready then please raise a PR we will review.
@bsushant-athena
I probably need something extra to be able to create a branch.
❯ git push --set-upstream origin skip_subcompartments
ERROR: Permission to oracle/oci-ansible-collection.git denied to sandorkazi.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Requested access to Oracle Contributor Agreement in OIM in the meantime... is that enough?
We have created an internal issue and working on this. We will update you once the release the resolution for this issue
option to exclude compartment has been added in the latest release v2.33.0 . To install the latest version run : ansible-galaxy collection install oracle.oci --force
changelog of the version release v2.33.0 : https://github.com/oracle/oci-ansible-collection/blob/master/CHANGELOG.md
Closing this issue.
Issue Report
Describe the issue
We have a compartment in all our tenancies named ManagedCompartmentForPaas which we cannot access. Hence the inventory plugin fails when trying to fetch all subcompartments.
Expected behavior
I'd expect some method to either only warning on this one or provide a parameter to explicitly exclude a compartment when fetching subcompartments.
Environment
Ansible playbook to reproduce the issue
Can't provide such a playbook as this would require a subcompartment which you lack access to, not a playbook.