Fix test error in test_compiler jinja check

The fix in #49002 was incomplete and when run on Debian, it hits a
`ValueError` when the RELEASE variable is a string with a decimal.
This change fixes the error.
This commit is contained in:
rallytime 2018-08-08 18:29:14 -04:00
parent 6b6d68c615
commit a9c16d9137
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -39,7 +39,7 @@ class CompileTest(ModuleCase):
'''
if salt.utils.is_linux() and HAS_LSB_RELEASE:
release = lsb_release.get_distro_information()
if release.get('ID') == 'Debian' and int(release.get('RELEASE', 0)) < 9:
if release.get('ID') == 'Debian' and int(release.get('RELEASE', '0')[0]) < 9:
self.skipTest('This test is flaky on Debian 8. Skipping.')
ret = self.run_function('state.sls', ['issue-10010'])