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:
parent
95c5253944
commit
5068cda2cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user