Issue
Description of problem:
When I try to connect to RHC using an invalid server value, connect is established and error code is 0.
```
connecting with invalid --server
✗ rhc connect --username <<value>> --password <<value>> --server "http://non-existent.server"
Connecting mabezerr-jenkins-rhel79 to Red Hat.
This might take a few seconds.
Connecting to Red Hat Subscription Management..WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
/ Connecting to Red Hat Subscription Management..WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
[...]
Connecting to Red Hat Subscription Management..WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
● Connected to Red Hat Subscription Management
● Activated the Red Hat connector daemon
Manage your Red Hat connector systems: https://red.ht/connector
```
now, checking the error code - I was expecting for "1"
(iqe_venv) ➜ iqe-rhc-client-plugin git:(ESSNTL-1535) ✗ echo $?
0
Version-Release number of selected component (if applicable):
✗ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
How reproducible:
call "rhc connect" command and insert any invalid value for --server field.
Steps to Reproduce:
1. Use rhc command with all necessary fields (username, password, server)
2. Check output
3. Run command "echo $?" to see the errorcode on output.
Actual results:
It is possible to establish connection on RHC with invalid --server value
Expected results:
I did the same for RHEL9 just to check, and here is the expected behavior:
using same credentials as used on RHEL7
✗ rhc connect --username <<value>> --password <<value>> --server "http://non-existent.server"
Connecting mabezerr-insights-rhel9 to Red Hat.
This might take a few seconds.
error: [Errno -2] Name or service not known
Now checking error code, I can see the expected value "1"
(venv) ➜ iqe_insights_client git:(master) ✗ echo $?
1
Additional info:
RHC version for RHEL7
✗ rhc --version
rhc version 0.2.0