keystoneng.role_grant is missing checks for __opts__['test'] #52220
Labels
Bug
broken, incorrect, or confusing behavior
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description of Issue/Question
This state module:
https://github.com/saltstack/salt/blob/develop/salt/states/keystone_role_grant.py
... is seemingly missing checks for
__opts__['test']
, so the state(s) are executed regardless of whether or not the user suppliestest=True
as part of the state run.Setup
Find IDs with
keystoneng.project_list
,keystoneng.user_list
, andkeystoneng.role_list
. Then just make a simple state file:Steps to Reproduce Issue
Assign a member some role access to a project in OpenStack, then run the state with
salt target state.apply your_statefile test=True
. The member will have the role assignment for the project removed even though no changes are expected due totest=True
being specified.Versions Report
The text was updated successfully, but these errors were encountered: