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

Set attributes if different (fixes #48839) #25260

Open
wants to merge 1 commit into
base: devel
from

Conversation

@wzyboy
Copy link
Contributor

@wzyboy wzyboy commented Jun 1, 2017

SUMMARY

chattr command line tool supports symbolic operators +, -, and =. However, attributes in file module supports only =. This is inconvenient if you do not know what the original attributes are.

This patch adds support for + and - operator. If you use old syntax (without any operator), the behavior is backwards-compatible.

ISSUE TYPE
  • Feature Pull Request
  • Docs Pull Request
COMPONENT NAME

file

ANSIBLE VERSION
ansible 2.3.0.0
  config file = /home/wzyboy/.ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Feb 11 2017, 12:22:40) [GCC 6.3.1 20170109]
@wzyboy
Copy link
Contributor Author

@wzyboy wzyboy commented Jun 1, 2017

I took a look at the CI details, there are two failures:

  • FreeBSD CI environment failed to setup because the FreeBSD software repo timed out;
  • Ubuntu CI environment failed to sestup because something is wrong with Docker.

This is scary. It is the CI itself to blame, but it still shows red, bold "All checks have failed" with a big error mark. Could I somehow trigger the CI system to try again?

@gundalow
Copy link
Contributor

@gundalow gundalow commented Jun 2, 2017

@wzyboy You can retrigger CI by closing and reopening the PR.
However as a member of the Ansible Group I've got the power to click "rebuild", which I've done for you. Occasionally we do hit timeouts, we are working on reducing them, thanks for understanding.

Looks like there is a merge conflict in lib/ansible/module_utils/basic.py which needs resolving

@wzyboy wzyboy force-pushed the wzyboy:set_attributes_if_different branch Jun 2, 2017
@wzyboy
Copy link
Contributor Author

@wzyboy wzyboy commented Jun 2, 2017

@gundalow Thanks for rebuilding.

Looks like the conflicts came from this one super PR that deals with PEP-8. It was merged 4 hours ago.

I have resolved the conflicts and rebased my commits.

@wzyboy wzyboy closed this Jun 2, 2017
@wzyboy wzyboy reopened this Jun 2, 2017
@wzyboy wzyboy closed this Jun 3, 2017
@wzyboy wzyboy reopened this Jun 3, 2017
@wzyboy
Copy link
Contributor Author

@wzyboy wzyboy commented Jun 12, 2017

It has been 12 days since this PR was opened. Is there anything I need to do to get this merged, before the branch is stale / needs rebasing?

@rlaager
rlaager approved these changes Mar 9, 2020
@elcomtik
Copy link

@elcomtik elcomtik commented Sep 30, 2020

@wzyboy could you please make another rebase. It's already annoying, but maybe someday it will be finally merged.

@wzyboy wzyboy force-pushed the wzyboy:set_attributes_if_different branch from 1fc9edd to 8099ed3 Oct 5, 2020
@wzyboy
Copy link
Contributor Author

@wzyboy wzyboy commented Oct 5, 2020

@wzyboy could you please make another rebase. It's already annoying, but maybe someday it will be finally merged.

Rebased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants