Missing negation

This commit is contained in:
Paweł T. Jochym
2022-02-20 10:44:24 +01:00
committed by GitHub
parent 48a8e5fcb5
commit e408d99a5a

View File

@@ -198,7 +198,7 @@ def ensure_host_system_can_install_tljh():
# Require Ubuntu 18.04+ # Require Ubuntu 18.04+
distro = get_os_release_variable("ID") distro = get_os_release_variable("ID")
version = float(get_os_release_variable("VERSION_ID")) version = float(get_os_release_variable("VERSION_ID"))
if distro in ["ubuntu", "debian"]: if distro not in ["ubuntu", "debian"]:
print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only") print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only")
sys.exit(1) sys.exit(1)
elif distro == "ubuntu" and float(version) < 18.04: elif distro == "ubuntu" and float(version) < 18.04: