Skip to content

Commit

Permalink
Add a note about including whitespace characters
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
lubosmj authored and mdellweg committed Jun 2, 2022
1 parent 51798c7 commit 819fa20
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
28 changes: 24 additions & 4 deletions pulpcore/cli/common/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,20 @@ def _type_callback(ctx: click.Context, param: click.Parameter, value: Optional[s
click.option(
"--download-concurrency", type=int, help=_("total number of simultaneous connections")
),
click.option("--password"),
click.option(
"--password",
help=_(
"The password to authenticate to the remote (can contain leading and trailing spaces)."
),
),
click.option("--proxy-url"),
click.option("--proxy-username"),
click.option("--proxy-password"),
click.option(
"--proxy-password",
help=_(
"The password to authenticate to the proxy (can contain leading and trailing spaces)."
),
),
click.option("--rate-limit", type=int, help=_("limit download rate in requests per second")),
click.option("--sock-connect-timeout", type=float),
click.option("--sock-read-timeout", type=float),
Expand Down Expand Up @@ -688,10 +698,20 @@ def _type_callback(ctx: click.Context, param: click.Parameter, value: Optional[s
click.option(
"--download-concurrency", type=int, help=_("total number of simultaneous connections")
),
click.option("--password"),
click.option(
"--password",
help=_(
"The password to authenticate to the remote (can contain leading and trailing spaces)."
),
),
click.option("--proxy-url"),
click.option("--proxy-username"),
click.option("--proxy-password"),
click.option(
"--proxy-password",
help=_(
"The password to authenticate to the proxy (can contain leading and trailing spaces)."
),
),
click.option("--rate-limit", type=int, help=_("limit download rate in requests per second")),
click.option("--sock-connect-timeout", type=float),
click.option("--sock-read-timeout", type=float),
Expand Down
14 changes: 12 additions & 2 deletions pulpcore/cli/rpm/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,23 @@ def remote(ctx: click.Context, pulp_ctx: PulpContext, remote_type: str) -> None:
click.option(
"--download-concurrency", type=int, help=_("total number of simultaneous connections")
),
click.option("--password"),
click.option(
"--password",
help=_(
"The password to authenticate to the remote (can contain leading and trailing spaces)."
),
),
click.option(
"--policy", type=click.Choice(["immediate", "on_demand", "streamed"], case_sensitive=False)
),
click.option("--proxy-url"),
click.option("--proxy-username"),
click.option("--proxy-password"),
click.option(
"--proxy-password",
help=_(
"The password to authenticate to the proxy (can contain leading and trailing spaces)."
),
),
click.option("--rate-limit", type=int, help=_("limit download rate in requests per second")),
pulp_option("--sles-auth-token", allowed_with_contexts=(PulpRpmRemoteContext,)),
click.option("--sock-connect-timeout", type=float),
Expand Down

0 comments on commit 819fa20

Please sign in to comment.