controller_configuration icon indicating copy to clipboard operation
controller_configuration copied to clipboard

Ad_hoc value as role name should be adhoc in object diff

Open bogdanmuresan opened this issue 1 year ago • 0 comments

Summary

When using "adhoc" role as a permission, when it is retrieved from the API the value is "Ad Hoc", which gets converted to "ad_hoc" in https://github.com/redhat-cop/controller_configuration/blob/devel/plugins/lookup/controller_object_diff.py#L233

so it no longer matches with config as code, and object diff attempts to remove it

awx.awx role module expects it as "adhoc", not "ad_hoc" https://docs.ansible.com/ansible/latest/collections/awx/awx/role_module.html

Issue Type

  • Bug Report

bogdanmuresan avatar Mar 27 '24 09:03 bogdanmuresan