2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Catch another sort of exception for non-rpm distributions

subprocess may produce a different sort of exception if
rpm doesn't exist at all
This commit is contained in:
Jarrod Johnson 2023-08-14 09:23:00 -04:00
parent 95c5253944
commit 5068cda2cf

View File

@ -1011,7 +1011,7 @@ def fingerprint_host_el(args, hostpath='/'):
release = v
elif k == 'Version':
version = v
except subprocess.SubprocessError:
except (subprocess.SubprocessError, FileNotFoundError):
return None
if 'el8' not in release and 'el7' not in release and 'el9' not in release:
return None