provision: Do not require lsb_release for centos.

This commit is contained in:
rht 2018-12-10 14:15:05 +00:00 committed by Tim Abbott
parent e0ec288928
commit a0b0ccf972
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ else:
# Ideally we wouldn't need to install a dependency here, before we
# know the codename.
if not os.path.exists("/usr/bin/lsb_release"):
is_rhel_based = os.path.exists("/etc/redhat-release")
if (not is_rhel_based) and (not os.path.exists("/usr/bin/lsb_release")):
subprocess.check_call(["sudo", "apt-get", "install", "-y", "lsb-release"])
distro_info = parse_lsb_release()