Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group state cannot force empty group membership #49744

Closed
MTecknology opened this issue Sep 22, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@MTecknology
Copy link
Contributor

commented Sep 22, 2018

Description of Issue/Question

As reported on IRC, the following state will produce no changes to group membership.

shadow:
  group.present:
    - members: []

This happens because the group state checks for false-like values and an empty list is false-like, producing a no-op change.

Desired Outcome: Group 'shadow' has no members.

Realized Outcome: Group 'shadow' member list in unchanged.

Versions Report

root@saltmaster:/srv/salt/system/cis# salt-call --versions-report
Salt Version:
           Salt: 2018.3.2

System Versions:
           dist: Ubuntu 16.04 xenial
         locale: UTF-8
        machine: x86_64
        release: 4.4.0-116-generic
         system: Linux
        version: Ubuntu 16.04 xenial
@Ch3LL

This comment has been minimized.

Copy link
Contributor

commented Sep 24, 2018

Thanks for the PR!

@Ch3LL Ch3LL added this to the Approved milestone Sep 24, 2018

@rallytime rallytime closed this in f57ce67 Oct 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.