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

args.version returning NoneType when enableing repos #46

Closed taftsanders closed 7 months ago

taftsanders commented 7 months ago

[root@bombsat614 ~]# ./satellite_leapp_check.py -c drone79.usersys.redhat.com

Thanks for using satellite_leapp_check. Please report all bugs or issues found to https://github.com/taftsanders/satellite-leapp-check/issues 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-installer package detected on executing server Calling the Satellite API for information on the specified client Enter your Satellite Username: admin Enter your Password: Searching for host drone79.usersys.redhat.com

Leapp version should be either '8.6', '8.8', '8.9', or '8.10' Enter the RHEL version you plan to leapp to: 8.9

✅ RHEL 7 version detected ❌ Organization ID 1 is missing Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64 ✅ Repository Enabled: Red Hat Enterprise Linux 7 Server - Extras (RPMs) Please sync this repository before attempting to include it in any content view or accessing it via a client Traceback (most recent call last): File "/root/./satellite_leapp_check.py", line 718, in main() File "/root/./satellite_leapp_check.py", line 709, in main parse_client() File "/root/./satellite_leapp_check.py", line 674, in parse_client enable_leapp_repos(org_id, arch, args.version, leapp_repos) File "/root/./satellite_leapp_check.py", line 292, in enable_leapp_repos hammer_enable_repo = command+name+'"'+repo+'"'+' '+release+releasever+' '+basearch+arch+' '+org+str(org_id)


TypeError: can only concatenate str (not "NoneType") to str