mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-04 18:48:56 +00:00
Address consider-using-dict-comprehension.
This commit is contained in:
parent
ae53065001
commit
8acdc3c851
@ -381,7 +381,6 @@ disable=raw-checker-failed,
|
|||||||
# To clean up:
|
# To clean up:
|
||||||
abstract-method,
|
abstract-method,
|
||||||
arguments-differ,
|
arguments-differ,
|
||||||
consider-using-dict-comprehension,
|
|
||||||
consider-using-f-string,
|
consider-using-f-string,
|
||||||
consider-using-in,
|
consider-using-in,
|
||||||
consider-using-max-builtin,
|
consider-using-max-builtin,
|
||||||
|
|||||||
@ -56,13 +56,11 @@ DOCKER_COMMON_ARGS = dict(
|
|||||||
debug=dict(type="bool", default=False),
|
debug=dict(type="bool", default=False),
|
||||||
)
|
)
|
||||||
|
|
||||||
DOCKER_COMMON_ARGS_VARS = dict(
|
DOCKER_COMMON_ARGS_VARS = {
|
||||||
[
|
option_name: f"ansible_docker_{option_name}"
|
||||||
[option_name, f"ansible_docker_{option_name}"]
|
for option_name in DOCKER_COMMON_ARGS
|
||||||
for option_name in DOCKER_COMMON_ARGS
|
if option_name != "debug"
|
||||||
if option_name != "debug"
|
}
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
DOCKER_MUTUALLY_EXCLUSIVE = []
|
DOCKER_MUTUALLY_EXCLUSIVE = []
|
||||||
|
|
||||||
|
|||||||
@ -40,6 +40,4 @@ class AnsibleDockerClient(AnsibleDockerClientBase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def _get_params(self):
|
def _get_params(self):
|
||||||
return dict(
|
return {option: self.plugin.get_option(option) for option in DOCKER_COMMON_ARGS}
|
||||||
[(option, self.plugin.get_option(option)) for option in DOCKER_COMMON_ARGS]
|
|
||||||
)
|
|
||||||
|
|||||||
@ -37,6 +37,4 @@ class AnsibleDockerClient(AnsibleDockerClientBase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def _get_params(self):
|
def _get_params(self):
|
||||||
return dict(
|
return {option: self.plugin.get_option(option) for option in DOCKER_COMMON_ARGS}
|
||||||
[(option, self.plugin.get_option(option)) for option in DOCKER_COMMON_ARGS]
|
|
||||||
)
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user