mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 00:12:54 +00:00
[PR #11049/396f467b backport][stable-12] Improve Python code: address unused variables (#11058)
Improve Python code: address unused variables (#11049)
* Address F841 (unused variable).
* Reformat.
* Add changelog fragment.
* More cleanup.
* Remove trailing whitespace.
* Readd removed code as a comment with TODO.
(cherry picked from commit 396f467bbb)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
1eca76969a
commit
8cd80d94a0
90 changed files with 232 additions and 235 deletions
|
|
@ -1118,11 +1118,11 @@ def main():
|
|||
password = module.params["password"]
|
||||
token = module.params["token"]
|
||||
server_hostname = module.params["server_hostname"]
|
||||
server_insecure = module.params["server_insecure"]
|
||||
server_prefix = module.params["server_prefix"]
|
||||
server_port = module.params["server_port"]
|
||||
rhsm_baseurl = module.params["rhsm_baseurl"]
|
||||
rhsm_repo_ca_cert = module.params["rhsm_repo_ca_cert"]
|
||||
# TODO - no longer used? module.params["server_insecure"]
|
||||
# TODO - no longer used? module.params["server_prefix"]
|
||||
# TODO - no longer used? module.params["server_port"]
|
||||
# TODO - no longer used? module.params["rhsm_baseurl"]
|
||||
# TODO - no longer used? module.params["rhsm_repo_ca_cert"]
|
||||
auto_attach = module.params["auto_attach"]
|
||||
activationkey = module.params["activationkey"]
|
||||
org_id = module.params["org_id"]
|
||||
|
|
@ -1142,10 +1142,10 @@ def main():
|
|||
consumer_name = module.params["consumer_name"]
|
||||
consumer_id = module.params["consumer_id"]
|
||||
force_register = module.params["force_register"]
|
||||
server_proxy_hostname = module.params["server_proxy_hostname"]
|
||||
server_proxy_port = module.params["server_proxy_port"]
|
||||
server_proxy_user = module.params["server_proxy_user"]
|
||||
server_proxy_password = module.params["server_proxy_password"]
|
||||
# TODO - no longer used? module.params["server_proxy_hostname"]
|
||||
# TODO - no longer used? module.params["server_proxy_port"]
|
||||
# TODO - no longer used? module.params["server_proxy_user"]
|
||||
# TODO - no longer used? module.params["server_proxy_password"]
|
||||
release = module.params["release"]
|
||||
syspurpose = module.params["syspurpose"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue