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

fix: textfile collector dir by setting recurse to false #105

Merged
merged 1 commit into from
May 16, 2023

Conversation

fitz123
Copy link
Contributor

@fitz123 fitz123 commented May 15, 2023

because it causes consistent ansible changes in case there are new metric files created by other users
fixes: #92

@fitz123 fitz123 changed the title issue 92: set recurse -> false for textfile collector dir set recurse -> false for textfile collector dir May 15, 2023
@fitz123 fitz123 changed the title set recurse -> false for textfile collector dir fix recurse for textfile collector dir May 15, 2023
@fitz123 fitz123 changed the title fix recurse for textfile collector dir fix textfile collector dir by setting recurse to false May 15, 2023
Copy link
Member

@gardar gardar left a comment

Choose a reason for hiding this comment

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

The default option for recurse is false, so we can just remove the parameter: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html#parameter-recurse

Also, there is no need to link the PR as a comment since git does track it and you can just look at the commit history to see why it got removed.

roles/node_exporter/tasks/configure.yml Outdated Show resolved Hide resolved
@gardar gardar changed the title fix textfile collector dir by setting recurse to false fix: textfile collector dir by setting recurse to false May 15, 2023
@github-actions github-actions bot added bugfix and removed bugfix labels May 15, 2023
@github-actions github-actions bot added bugfix and removed bugfix labels May 15, 2023
@github-actions github-actions bot added bugfix and removed bugfix labels May 15, 2023
@fitz123 fitz123 requested a review from gardar May 15, 2023 15:22
@gardar
Copy link
Member

gardar commented May 16, 2023

Linting errors were unrelated and have been fixed in main, please rebase.

@gardar
Copy link
Member

gardar commented May 16, 2023

Err, a new version of ansible-lint was released this morning which brings us new linting issues.
I'll try to fix it later today, appreciate the patience.

@gardar
Copy link
Member

gardar commented May 16, 2023

Mind rebasing again? Linting issues fixed in #109

… consistent ansible changes in case there are new metric files created by other users

Signed-off-by: Anton Lugovoi <alugovoi@ordercapital.com>
@gardar gardar merged commit 180f594 into prometheus-community:main May 16, 2023
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node_exporter "Create textfile collector dir" task - Consistent "change" state
2 participants