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 various sanity errors in plugins #881

Merged
merged 5 commits into from
Sep 16, 2020

Conversation

felixfontein
Copy link
Collaborator

SUMMARY

Fix some errors found with ansible/ansible#71734.

ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
COMPONENT NAME

plugins/become/pfexec.py
plugins/callback/cgroup_memory_recap.py
plugins/callback/counter_enabled.py
plugins/callback/diy.py
plugins/callback/hipchat.py
plugins/callback/logdna.py
plugins/callback/mail.py
plugins/callback/null.py
plugins/callback/selective.py
plugins/callback/slack.py
plugins/callback/stderr.py
plugins/callback/syslog_json.py
plugins/inventory/gitlab_runners.py
plugins/lookup/chef_databag.py
plugins/lookup/consul_kv.py
plugins/lookup/credstash.py
plugins/lookup/cyberarkpassword.py
plugins/lookup/dig.py
plugins/lookup/dsv.py
plugins/lookup/etcd3.py
plugins/lookup/filetree.py
plugins/lookup/gcp_storage_file.py
plugins/lookup/hashi_vault.py
plugins/lookup/hiera.py
plugins/lookup/keyring.py
plugins/lookup/lastpass.py
plugins/lookup/lmdb_kv.py
plugins/lookup/nios.py
plugins/lookup/nios_next_ip.py
plugins/lookup/nios_next_network.py
plugins/lookup/onepassword.py
plugins/lookup/onepassword_raw.py
plugins/lookup/passwordstore.py
plugins/lookup/redis.py
plugins/lookup/shelvefile.py
plugins/lookup/tss.py

@ansibullbot ansibullbot added affects_2.10 become become plugin bug This issue/PR relates to a bug callback callback plugin community_review inventory inventory plugin lookup lookup plugin needs_triage plugins plugin (any type) labels Sep 12, 2020
Copy link
Contributor

@Andersson007 Andersson007 left a comment

Choose a reason for hiding this comment

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

@felixfontein feel free to ignore all cosmetic suggestion.. When i started i didn't see that there is a total mess with formatting, etc.

plugins/lookup/chef_databag.py Outdated Show resolved Hide resolved
plugins/lookup/credstash.py Outdated Show resolved Hide resolved
plugins/lookup/cyberarkpassword.py Outdated Show resolved Hide resolved
plugins/lookup/dig.py Outdated Show resolved Hide resolved
plugins/lookup/filetree.py Outdated Show resolved Hide resolved
plugins/lookup/filetree.py Outdated Show resolved Hide resolved
plugins/lookup/filetree.py Outdated Show resolved Hide resolved
plugins/lookup/keyring.py Outdated Show resolved Hide resolved
@felixfontein
Copy link
Collaborator Author

Indeed, there's a huge mess in the plugin docs as well :) I've still commited your suggestions so at least they get fixed.

Copy link
Contributor

@Andersson007 Andersson007 left a comment

Choose a reason for hiding this comment

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

LGTM

@felixfontein felixfontein merged commit 7cf4728 into ansible-collections:main Sep 16, 2020
@felixfontein felixfontein deleted the fix-sanity branch September 16, 2020 09:06
@felixfontein
Copy link
Collaborator Author

@Andersson007 thanks a lot for reviewing this!

patchback bot pushed a commit that referenced this pull request Sep 16, 2020
* Fix deprecation of callables.

* Fix various sanity errors.

* Revert callback_type -> type transform.

* Fix stat_result times: these are float according to https://github.com/python/typeshed/blob/master/stdlib/3/os/__init__.pyi

* Apply suggestions from code review

Co-authored-by: Andrew Klychkov <[email protected]>

Co-authored-by: Andrew Klychkov <[email protected]>
(cherry picked from commit 7cf4728)
felixfontein added a commit that referenced this pull request Sep 17, 2020
* Fix deprecation of callables.

* Fix various sanity errors.

* Revert callback_type -> type transform.

* Fix stat_result times: these are float according to https://github.com/python/typeshed/blob/master/stdlib/3/os/__init__.pyi

* Apply suggestions from code review

Co-authored-by: Andrew Klychkov <[email protected]>

Co-authored-by: Andrew Klychkov <[email protected]>
(cherry picked from commit 7cf4728)

Co-authored-by: Felix Fontein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
become become plugin bug This issue/PR relates to a bug callback callback plugin community_review inventory inventory plugin lookup lookup plugin needs_triage plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants