Skip to content

Conversation

@NomakCooper
Copy link
Contributor

SUMMARY

This PR adds the new value n for op argument to create new excel file without template source

example:

# Create excel file from ans2dev.general 0.2.0
- name: Create a new Excel file and write data
  ans2dev.general.open_xl:
    dest: "/tmp/new_file.xlsx"
    op: "n"
    sheet_name: "Data"
    updates_matrix:
      - cell_row: 1
        cell_col: 1
        cell_value: "Header"
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

open_xl

ADDITIONAL INFORMATION

@keywordlabeler keywordlabeler bot added the feature This issue/PR relates to a feature request. label Apr 4, 2025
@github-actions
Copy link

github-actions bot commented Apr 4, 2025

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and the docs are now incorporated into main:
https://3A2DEV.github.io/ans2dev.general/branch/main

@3A2BOT
Copy link

3A2BOT commented Apr 4, 2025

🕙 Outdated CI result (auto-archived by bot)

🚨 CI Test Failures Detected

⚙️ Units (Ⓐstable-2.17)

FAILED tests/unit/plugins/modules/test_open_xl.py::TestOpenXLModule::test_new_excel - AttributeError: <module 'ansible_collections.ans2dev.general.plugins.module...

---

FATAL: Command "pytest -r a -n auto --color yes -p no:cacheprovider -c /root/ansible/test/lib/ansible_test/_data/pytest/config/legacy.ini --junit-xml /root/ansible_collections/ans2dev/general/tests/output/junit/python3.7-modules-units.xml --strict-markers --rootdir /root/ansible_collections/ans2dev/general --confcutdir /root/ansible_collections/ans2dev/general -v tests/unit/plugins/modules/test_open_xl.py" returned exit status 1.

---

FATAL: Command "docker exec --user pytest ansible-test-controller-TsH4bc0J /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible_collections/ans2dev/general LC_ALL=en_US.UTF-8 /usr/bin/python3.12 /root/ansible/bin/ansible-test units -v --containers '{}' --requirements-mode skip --truncate 0 --color yes --host-path tests/output/.tmp/host-kv3f_njh --metadata tests/output/.tmp/metadata-t54p

@3A2BOT 3A2BOT added stale_ci needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed stale_ci needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 4, 2025
@NomakCooper NomakCooper added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. stale_ci labels Apr 4, 2025
@3A2BOT

This comment was marked as outdated.

@3A2BOT 3A2BOT removed stale_ci needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 4, 2025
@NomakCooper NomakCooper added the backport-10 backport to stable-10 label Apr 4, 2025
@NomakCooper
Copy link
Contributor Author

/approve

@repo-command
Copy link

repo-command bot commented Apr 4, 2025

Pull request approved by @NomakCooper

@repo-command repo-command bot added the approved label Apr 4, 2025
@NomakCooper NomakCooper merged commit bceb086 into 3A2DEV:main Apr 4, 2025
29 checks passed
@patchback
Copy link
Contributor

patchback bot commented Apr 4, 2025

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/bceb086b5990a5fef81d98ac6e276d1d6c79e500/pr-116

Backported as #117

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@repo-command repo-command bot added merged and removed approved labels Apr 4, 2025
patchback bot pushed a commit that referenced this pull request Apr 4, 2025
* open_xl - add op to create new excel file

* open_xl - fix docs and ansible-test units

* open_xl - fix ansible-test units

* open_xl - fix ansible-test units

* open_xl - add changelog/fragments file

(cherry picked from commit bceb086)
NomakCooper added a commit that referenced this pull request Apr 4, 2025
* open_xl - add op to create new excel file

* open_xl - fix docs and ansible-test units

* open_xl - fix ansible-test units

* open_xl - fix ansible-test units

* open_xl - add changelog/fragments file

(cherry picked from commit bceb086)

Co-authored-by: Nocchia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-10 backport to stable-10 docs_fragments feature This issue/PR relates to a feature request. merged module plugin tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants