-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
NameError: global name 'existing' is not defined with ansible 2.3 #22785
Labels
affects_2.3
This issue/PR affects Ansible v2.3
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
Comments
ansibot
added
affects_2.3
This issue/PR affects Ansible v2.3
bug_report
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
labels
Mar 20, 2017
bcoca
removed
the
needs_triage
Needs a first human triage before being processed.
label
Mar 20, 2017
mistakenly removed by 2374116 |
So this wasn't caught by integration testing ! |
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Mar 20, 2017
Merged
@bcoca Thanks, the attributes param seems working after adding "existing = self.get_file_attributes(b_path)". will the fix be shipped with 2.3 release? |
@andreyhsiao Sorry for all the trouble. Yes, this must be part of v2.3 ! |
bcoca
added a commit
that referenced
this issue
Mar 20, 2017
dagwieers
added a commit
to dagwieers/ansible
that referenced
this issue
Mar 21, 2017
This fixes ansible#22785 It also implements the following changes: - Add integration tests adding/removing attributes - Improve the error output when chown/chgrp fails - Improve readability of other file-related errors - Reformatted all tests to use YAML syntax - Ensure error strings are using to_native()
@dagwieers @bcoca Thanks all |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.3
This issue/PR affects Ansible v2.3
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
OS / ENVIRONMENT
SUMMARY
I checked the source code in lib/ansible/module_utils/basic.py, not sure where the var existing in ** line 1145: if existing.get('attr_flags','') != attributes: ** is defined
The text was updated successfully, but these errors were encountered: