Skip to content

Commit

Permalink
last lxc review bits
Browse files Browse the repository at this point in the history
  • Loading branch information
kiorky committed Mar 6, 2014
1 parent f15961c commit 37f8a66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion salt/cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import time
import signal
import logging
from pprint import pprint
import multiprocessing
from itertools import groupby

Expand Down
10 changes: 7 additions & 3 deletions salt/modules/lxc.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ def _ip_sort(ip):


def __virtual__():
if salt.utils.which('lxc-start'):
return True
'''
To speed up the whole thing, we decided to not use the
subshell way and assume things are in place for lxc
Discussion made by @kiorky and @thatch45
if salt.utils.which('lxc-autostart'):
return 'lxc'
lxc-version presence is not sufficient, in lxc1.0 alpha
(precise backports), we have it and it is sufficient
for the module to execute.
elif salt.utils.which('lxc-version'):
passed = False
try:
Expand All @@ -63,7 +67,7 @@ def __virtual__():
return 'lxc'
return False
'''
return True
return False


def _lxc_profile(profile):
Expand Down

0 comments on commit 37f8a66

Please sign in to comment.