diff options
author | Jeff Lane <jeffrey.lane@canonical.com> | 2016-12-22 14:32:08 -0500 |
---|---|---|
committer | Jeff Lane <jeffrey.lane@canonical.com> | 2016-12-22 14:32:08 -0500 |
commit | 9fcd4cb386de8ed076c11405dc3f8cb8f2b0771e (patch) | |
tree | 34541c442fbcbdab8023a3bf05f01d611c1a3d8c | |
parent | 9cda938e95bb0570500edd97d0cb7346bf81d917 (diff) |
modifications based on review feedback
-rwxr-xr-x | bin/boot_mode_test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/boot_mode_test b/bin/boot_mode_test index 7578779..330bb2b 100755 --- a/bin/boot_mode_test +++ b/bin/boot_mode_test @@ -38,16 +38,16 @@ def version_check(check): return code from requested check if the installed version is 16.04 or newer. """ - installed_version = linux_distribution()[1] - if installed_version < '16.04': + installed_version = int(linux_distribution()[1].split()[0]) + if installed_version < 16: logging.info("This system appears to be older than 16.04 LTS so this " "will not block a certification in progress.") if check == 'efi': efi_boot_check() - return 0 else: secure_boot_check() - return 0 + + return 0 else: if check == 'efi': return efi_boot_check() |