mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
6b6d68c615
commit
a9c16d9137
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Reference in a new issue