Merge pull request #25231 from thepauleh/patch-1

[25230] Change LXC version to come from lxc-info
This commit is contained in:
Erik Johnson 2015-07-08 11:09:06 -05:00
commit 08bbfcd4d9

View File

@ -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'):