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 authored and jirihnidek committed Oct 31, 2023
1 parent bd1e16e commit bf88151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subscription_manager/managercli.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def main(self, args=None):
# this tries to actually connect to the server and ping it
if not is_valid_server_info(self.no_auth_cp):
system_exit(os.EX_UNAVAILABLE, _("Unable to reach the server at %s:%s%s") % (
self.no_auth_cp.host,
connection.normalized_host(self.no_auth_cp.host),
self.no_auth_cp.ssl_port,
self.no_auth_cp.handler
))
Expand Down

0 comments on commit bf88151

Please sign in to comment.