-
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
Port modules from type=str to type=path #12263
Labels
affects_2.1
This issue/PR affects Ansible v2.1
affects_2.3
This issue/PR affects Ansible v2.3
feature
This issue/PR relates to a feature request.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Comments
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Feb 11, 2017
Related to ansible#12263, this patch removes the usage of expanduser in favor of the path 'type' for the module options of src and dest
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Feb 11, 2017
This patch removes the use of expanduser and replaces it with type 'path'. This patch is related to ansible#12263
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Feb 12, 2017
This patch removes the use of expanduser and replaces it with type 'path' for the option. This is related to ansible#12263.
bcoca
pushed a commit
that referenced
this issue
Feb 13, 2017
This patch removes the use of expanduser and replaces it with type 'path' for the option. This is related to #12263.
bcoca
pushed a commit
that referenced
this issue
Feb 13, 2017
Related to #12263, this patch removes the usage of expanduser in favor of the path 'type' for the module options of src and dest
bcoca
pushed a commit
that referenced
this issue
Feb 13, 2017
This patch removes the use of expanduser and replaces it with type 'path'. This patch is related to #12263
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Feb 13, 2017
Replaces the usage of expanduser with the type 'path' for the dest and object options as that functionality is available in that type automatically. patch related to ansible#12263
bcoca
pushed a commit
that referenced
this issue
Feb 13, 2017
Replaces the usage of expanduser with the type 'path' for the dest and object options as that functionality is available in that type automatically. patch related to #12263
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Feb 13, 2017
Removes the usage of expanduser in favor of the type 'path' for module options. Related to ansible#12263
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Feb 13, 2017
The usage of type='path' includes the expanduser call itself. This patch removes its duplicate usage. Related to ansible#12263
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Feb 14, 2017
Removes the usage of expanduser because it is handled automatically by type 'path'. Related to ansible#12263
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Feb 14, 2017
Removes the usage of expanduser because it is automatically handed by specifying a type of 'path'. Related to ansible#12263
bcoca
pushed a commit
that referenced
this issue
Feb 14, 2017
Removes the usage of expanduser because it is automatically handed by specifying a type of 'path'. Related to #12263
bcoca
pushed a commit
that referenced
this issue
Feb 27, 2017
The usage of type='path' includes the expanduser call itself. This patch removes its duplicate usage. Related to #12263
caphrim007
added a commit
to caphrim007/ansible
that referenced
this issue
Mar 6, 2017
Removes the usage of expanduser in favor of the type 'path' for module options. Related to ansible#12263
sivel
pushed a commit
that referenced
this issue
Mar 30, 2017
Removes the usage of expanduser in favor of the type 'path' for module options. Related to #12263
bcoca
pushed a commit
that referenced
this issue
Mar 31, 2017
Removes the usage of expanduser in favor of the type 'path' for module options. Related to #12263
ansibot
added
needs_info
This issue requires further information. Please answer any outstanding questions.
needs_template
This issue/PR has an incomplete description. Please fill in the proposed template correctly.
and removed
needs_info
This issue requires further information. Please answer any outstanding questions.
needs_template
This issue/PR has an incomplete description. Please fill in the proposed template correctly.
labels
Apr 4, 2017
ansibot
added
the
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
label
Jun 29, 2017
ansibot
added
feature
This issue/PR relates to a feature request.
and removed
feature_idea
labels
Mar 2, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.1
This issue/PR affects Ansible v2.1
affects_2.3
This issue/PR affects Ansible v2.3
feature
This issue/PR relates to a feature request.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
Feature Idea
COMPONENT NAME
core
ANSIBLE VERSION
2.1
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
In both the core and extras repositories we have modules that take a file system path as a parameter. In the past each module needed to expanduser and expandvars on those to expand things like "~" and "$HOME". In 2.0 we added a new type to the argument spec: path. We need to port all of the modules to use that instead (change the argument_spaec to switch from type="str", the default, to type="path" and change the code to not run expanduser and expandvars on the path a second time.)
A good first approximation of the work is seen via:
grep -r expanduser lib/ansible/modules
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: