diff --git a/files/common/usr/bin/delphix-startup-screen b/files/common/usr/bin/delphix-startup-screen index 703fcb37..5dbabce0 100755 --- a/files/common/usr/bin/delphix-startup-screen +++ b/files/common/usr/bin/delphix-startup-screen @@ -1,6 +1,6 @@ #!/usr/bin/python3 # -# Copyright 2020 Delphix +# Copyright 2020, 2024 Delphix # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -131,7 +131,7 @@ def load_header(stdscr) -> Any: stdout=subprocess.PIPE, universal_newlines=True, check=True) - version = cp.stdout + version: str = cp.stdout if not version: # Use the packaged app version when available # fallback to the appliance version @@ -140,7 +140,7 @@ def load_header(stdscr) -> Any: stdout=subprocess.PIPE, universal_newlines=True, check=True) - version: str = cp.stdout + version = cp.stdout stdscr.clear() stdscr.addstr(1, 2, LOGO + str(version), curses.A_BOLD) @@ -228,9 +228,8 @@ def get_network_status() -> Tuple[str, str]: ipaddrs = [] for interface in interfaces(): - if (interface == "lo" or - interface == "docker0" or - interface.startswith("br-")): + if (interface == "lo" or interface == "docker0" or + interface.startswith("br-")): continue for link in ifaddresses(interface).get(AF_INET, []): ipaddrs.append(link['addr']) @@ -238,7 +237,7 @@ def get_network_status() -> Tuple[str, str]: return (hostname, ", ".join(ipaddrs)) -# pylint: disable-msg=too-many-locals +# pylint: disable-msg=too-many-locals, too-many-statements def display_status(stdscr, win): """ Main display and input function. This function will display