Skip to content

Commit

Permalink
apply PR review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-markowski committed Jun 25, 2024
1 parent 1ee0db9 commit 015f7ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/doc_fragments/pulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class ModuleDocFragment(object):
- It is recommended to use this once with the M(pulp.squeezer.status) module at the beginning of the playbook.
type: bool
default: false
pulp_timeout:
timeout:
description:
- timeout value for connecting to pulp api
- Time in seconds to wait for tasks.
type: int
default: 10
"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/pulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, **kwargs):
fallback=(env_fallback, ["SQUEEZER_VALIDATE_CERTS"]),
),
refresh_api_cache=dict(type="bool", default=False),
pulp_timeout=dict(type=int, required=False, default=10),
timeout=dict(type=int, required=False, default=10),
)
argument_spec.update(kwargs.pop("argument_spec", {}))
supports_check_mode = kwargs.pop("supports_check_mode", True)
Expand All @@ -77,7 +77,7 @@ def __enter__(self):
password=self.params["password"],
validate_certs=self.params["validate_certs"],
refresh_cache=self.params["refresh_api_cache"],
timeout=self.params["pulp_timeout"],
timeout=self.params["timeout"],
)

return self
Expand Down

0 comments on commit 015f7ae

Please sign in to comment.