mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #25231 from thepauleh/patch-1
[25230] Change LXC version to come from lxc-info
This commit is contained in:
commit
08bbfcd4d9
@ -117,7 +117,7 @@ def version():
|
|||||||
'''
|
'''
|
||||||
k = 'lxc.version'
|
k = 'lxc.version'
|
||||||
if not __context__.get(k, None):
|
if not __context__.get(k, None):
|
||||||
cversion = __salt__['cmd.run_all']('lxc-ls --version')
|
cversion = __salt__['cmd.run_all']('lxc-info --version')
|
||||||
if not cversion['retcode']:
|
if not cversion['retcode']:
|
||||||
ver = distutils.version.LooseVersion(cversion['stdout'])
|
ver = distutils.version.LooseVersion(cversion['stdout'])
|
||||||
if ver < distutils.version.LooseVersion('1.0'):
|
if ver < distutils.version.LooseVersion('1.0'):
|
||||||
|
Loading…
Reference in New Issue
Block a user