Skip to content

Commit

Permalink
cli: normalize hostname in error message
Browse files Browse the repository at this point in the history
Normalize the hostname printed for connection errors when pinging the
server, in case anything was passed via --serverurl, --insecure, or
--baseurl.
  • Loading branch information
ptoscano committed Oct 11, 2023
1 parent b06f027 commit d045ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subscription_manager/cli_command/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def main(self, args: Optional[List[str]] = None) -> Optional[int]:
system_exit(
os.EX_UNAVAILABLE,
_("Unable to reach the server at {host}:{port}{handler}").format(
host=self.no_auth_cp.host,
host=connection.normalized_host(self.no_auth_cp.host),
port=self.no_auth_cp.ssl_port,
handler=self.no_auth_cp.handler,
),
Expand Down

0 comments on commit d045ae2

Please sign in to comment.