You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the categoryor scope of a group leads to an change as the enum for GroupCategory or GroupScope is not resolved from the integer value back to the name. Therefor the group is never ok but always changed.
The problem here is that the category and scope options were being checked with a case sensitive comparer. If you did scope: Universal or category: Security then a change wouldn't have occurred.
Unfortunately the diff output is another unrelated problem due to how the values are serialized. Unfortunately that's not an easy fix but as the diff is a best effort attempt it's not worth the extra complexity required to try and match it up with the type of the input value so for now that will stay the same. At least with the fix in #33, it will no longer report a change the the diff output won't be shown.
SUMMARY
Setting the
category
orscope
of agroup
leads to an change as the enum forGroupCategory
orGroupScope
is not resolved from the integer value back to the name. Therefor the group is neverok
but alwayschanged
.ISSUE TYPE
COMPONENT NAME
group
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ansible on Ubuntu 22 LTS
Windows on 2019 Server
STEPS TO REPRODUCE
EXPECTED RESULTS
The task always return changed when
scope
andcategory
is set. Even when set to the same value as they are in ad.ACTUAL RESULTS
The task should return ok when
scope
andcategory
is set to the same value as they are in ad.The text was updated successfully, but these errors were encountered: