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 copy.py #56370

Merged
merged 7 commits into from
Jul 22, 2019
Merged

Update copy.py #56370

merged 7 commits into from
Jul 22, 2019

Conversation

AlexImray
Copy link
Contributor

@AlexImray AlexImray commented May 13, 2019

+label: docsite_pr

SUMMARY

Updated the description of the 'dest' parameter to specify that a file will be created if path is invalid but 'content' parameter is used instead of 'src' parameter

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

copy

ADDITIONAL INFORMATION

<!--- Updated the description of the 'dest' parameter to specify that a file will be created if path is invalid if 'content' parameter is used instead of 'src' parameter -->

+label: docsite_pr
@ansibot
Copy link
Contributor

ansibot commented May 13, 2019

cc @ptux
click here for bot help

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 core_review In order to be merged, this PR must follow the core review workflow. docs This issue/PR relates to or includes documentation. files Files category module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_contributor This PR is the first contribution by a new community member. small_patch support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels May 13, 2019
@@ -46,6 +46,7 @@
- If C(dest) is a non-existent path and if either C(dest) ends with "/" or C(src) is a directory, C(dest) is created.
- If I(dest) is a relative path, the starting directory is determined by the remote host.
- If C(src) and C(dest) are files, the parent directory of C(dest) is not created and the task fails if it does not already exist.
- If C(content) is used and C(dest) is a file, file is created if it does not already exist
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add . to the end of the sentence, please.

@ptux
Copy link
Contributor

ptux commented May 14, 2019

@AlexImray

It will be appreciated if you show the evidence(playbook and output) for the change.

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label May 14, 2019
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label May 22, 2019
@samccann samccann added the waiting_on_contributor This would be accepted but there are no plans to actively work on it. label Jun 20, 2019
@anshulbehl
Copy link
Contributor

@ptux
Just tested this and it works with the below playbook

---
- name: copy test 56370
  hosts: localhost
  gather_facts: no
  tasks:
    - name: test copy
      copy:
        content: |
          lorem ipsum it
        dest: yaya

Let me know if more evidence is needed

@ansibot ansibot removed the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jun 28, 2019
@@ -46,6 +46,7 @@
- If C(dest) is a non-existent path and if either C(dest) ends with "/" or C(src) is a directory, C(dest) is created.
- If I(dest) is a relative path, the starting directory is determined by the remote host.
- If C(src) and C(dest) are files, the parent directory of C(dest) is not created and the task fails if it does not already exist.
- If C(content) is used and C(dest) is a file, file is created if it does not already exist.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, this is documenting obvious functionality of the module. As such, I don't find this added documentation useful.

Perhaps additional clarification can be added to the description of the module to indicate that it does not require a file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a change to the content description now, @sivel please review

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acozine Check now

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Jun 28, 2019
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jul 6, 2019
@ansibot ansibot removed small_patch stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Jul 11, 2019
@acozine acozine removed the waiting_on_contributor This would be accepted but there are no plans to actively work on it. label Jul 12, 2019
@ansibot ansibot added the waiting_on_contributor This would be accepted but there are no plans to actively work on it. label Jul 12, 2019
@acozine acozine removed the waiting_on_contributor This would be accepted but there are no plans to actively work on it. label Jul 15, 2019
@ansibot ansibot added the waiting_on_contributor This would be accepted but there are no plans to actively work on it. label Jul 15, 2019
@acozine acozine merged commit a2b4985 into ansible:devel Jul 22, 2019
@ansible ansible locked and limited conversation to collaborators Aug 19, 2019
@dagwieers dagwieers added the docsite_pr This PR is created from documentation using the "Edit on GitHub" link. label Sep 5, 2019
@sivel sivel removed the waiting_on_contributor This would be accepted but there are no plans to actively work on it. label Dec 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 docs This issue/PR relates to or includes documentation. docsite_pr This PR is created from documentation using the "Edit on GitHub" link. files Files category module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. new_contributor This PR is the first contribution by a new community member. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants