While performing some test in order to set up the defaults_roles key in the default policy with the create_role key set to false it was observed that when adding a non-existing role, that role was being created and added to the defaults_roles key of the policy.
STEPS TO REPRODUCE
Modify the already existing default policy to add a non-existing role.
EXPECTED RESULTS
The defaults_roles should point to nil since the specified role does not exist.
ACTUAL RESULTS
The is being created and is being added to the defaults_roles list of the default policy
PROBLEM SUMMARY
While performing some test in order to set up the defaults_roles key in the default policy with the create_role key set to false it was observed that when adding a non-existing role, that role was being created and added to the defaults_roles key of the policy.
STEPS TO REPRODUCE
EXPECTED RESULTS The defaults_roles should point to nil since the specified role does not exist.
ACTUAL RESULTS
The is being created and is being added to the defaults_roles list of the default policy
ENVIRONMENT DETAILS
COMMENTS/WORKAROUNDS None