diff options
| author | Jeff Lane <jeffrey.lane@canonical.com> | 2017-02-10 11:49:07 -0500 |
|---|---|---|
| committer | Jeff Lane <jeffrey.lane@canonical.com> | 2017-02-10 11:49:07 -0500 |
| commit | 366e3bec91fafca36f906bbd1e616728f6d01ac7 (patch) | |
| tree | 72916d3dde3cc5858e5e2d1df6a5aed7e01c98f4 | |
| parent | 4802d760e6db284646173113808e30a45d7d6e5a (diff) | |
bin/boot_mode_test: breaks now when getting linux_distribution output. Now split on the . in 16.04 explicitly. LP: #1663665
| -rwxr-xr-x | bin/boot_mode_test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/boot_mode_test b/bin/boot_mode_test index 330bb2b..53e4fac 100755 --- a/bin/boot_mode_test +++ b/bin/boot_mode_test @@ -38,7 +38,7 @@ def version_check(check): return code from requested check if the installed version is 16.04 or newer. """ - installed_version = int(linux_distribution()[1].split()[0]) + 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.") |
