mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
modules/lxc: more consistent comparsion
This commit is contained in:
parent
07c365a23b
commit
27c4689a24
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ def version():
|
|||
cversion = __salt__['cmd.run_all']('lxc-ls --version')
|
||||
if not cversion['retcode']:
|
||||
ver = distutils.version.LooseVersion(cversion['stdout'])
|
||||
if ver < '1.0':
|
||||
if ver < distutils.version.LooseVersion('1.0'):
|
||||
raise CommandExecutionError('LXC should be at least 1.0')
|
||||
__context__[k] = "{0}".format(ver)
|
||||
return __context__.get(k, None)
|
||||
|
|
Loading…
Add table
Reference in a new issue