Skip to content

Issue #28706: Fix state user.present behavior. - #30824

Merged
cachedout merged 1 commit into
saltstack:developfrom
alxf:local/issue-#28706
Feb 2, 2016
Merged

cachedout merged 1 commit into
saltstack:developfrom
alxf:local/issue-#28706

Conversation

@alxf

@alxf alxf commented Feb 2, 2016

Copy link
Copy Markdown

    - As mentionned in issue #28706, state user.present no longer remove
      user from groups if the keyword 'groups' with empty value '[]' is not
      explicitly set, salt will assume current groups are still wanted.
@alxf

alxf commented Feb 2, 2016

Copy link
Copy Markdown
Author

I made this small sls file in order to test the fix:

foobar1:
  user.present:
    - shell: /bin/bash

foobar2:
  user.present:
    - shell: /bin/bash
    - groups: []

world:
  group.present:
    - members:
      - foobar1
      - foobar2

The second state execution shouldn't mention any changes for the user foobar1.

cachedout pushed a commit that referenced this pull request Feb 2, 2016
Issue #28706: Fix state user.present behavior.
@cachedout
cachedout merged commit 985d4c6 into saltstack:develop Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants