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

Update aliases.py #24659

Merged
merged 1 commit into from
Jun 13, 2015
Merged

Update aliases.py #24659

merged 1 commit into from
Jun 13, 2015

Conversation

kartiksubbarao
Copy link
Contributor

Fixes #24537. Also note: the new behavior overwrites any prior superset targets with the current set. For example, given an /etc/aliases entry "a: b,c,d" and the salt state specified as "a: { alias.present: [ target: b ] }", the /etc/aliases entry is changed to "a: b". This seems okay to me, given that the documentation states "If the alias exists but the target differs from the previous entry, the target(s) will be overwritten."

Fixes saltstack#24537. Also note: the new behavior overwrites any prior superset targets with the current set. For example, given an /etc/aliases entry "a: b,c,d" and the salt state specified as "a: { alias.present: [ target: b ] }", the /etc/aliases entry is changed to "a: b". This seems okay to me, given that the documentation states "If the alias exists but the target differs from the previous entry, the target(s) will be overwritten."
thatch45 added a commit that referenced this pull request Jun 13, 2015
@thatch45 thatch45 merged commit 4c64ee9 into saltstack:2015.5 Jun 13, 2015
@thatch45
Copy link
Contributor

Very nice fix, thanks!

@kartiksubbarao kartiksubbarao deleted the patch-1 branch June 15, 2015 19:12
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.

None yet

2 participants