taftsanders / satellite-leapp-check

A script to run on the Satellite or the upgrading client to validate clients have the required repositories for the LEAPP upgrade process
GNU General Public License v3.0
4 stars 3 forks source link

Bad error when running on fedora #27

Closed taftsanders closed 7 months ago

taftsanders commented 8 months ago
↪ ./satellite_leapp_check 

This script is used in determining the availability of the correct repositories for a client for leapp upgrade
This script currently only supports RHEL 7 to 8 upgrade for x86_64 Intel architecture
Satellite is not installed
No satellite package found, assuming this server is a client
❌ RHEL version to leapp to not supplied
- Please use the "-v" option to specify a RHEL version to leapp to
- Example:
  # python satellite_leapp_check.py -c client.example.com -v 8.6 -u admin -p password
Traceback (most recent call last):
  File "satellite_leapp_check.py", line 639, in <module>
  File "satellite_leapp_check.py", line 634, in main
  File "satellite_leapp_check.py", line 535, in check_client
  File "satellite_leapp_check.py", line 137, in get_leapp_version
UnboundLocalError: local variable 'LEAPP_VERSION' referenced before assignment
[279716] Failed to execute script 'satellite_leapp_check' due to unhandled exception!
taftsanders commented 8 months ago

The initial conduit for executing the script was either the Satellite/Capsule or from the client of the Satellite/Capsule. Changing this to an enhancement as something I would consider adding later on.

taftsanders commented 7 months ago

As the executing server would add a lot of variable checks before being able to execute the core function of the project, I will archive this request to save time on more important features.