Signed-off-by: Felipe Zipitria <fzipitria@perceptyx.com>pull/215/head
from __future__ import absolute_import | from __future__ import absolute_import | ||||
import logging | import logging | ||||
import salt.utils | |||||
import salt.utils.path | |||||
log = logging.getLogger(__name__) | log = logging.getLogger(__name__) | ||||
''' | ''' | ||||
Only load the module if Open vSwitch is installed | Only load the module if Open vSwitch is installed | ||||
''' | ''' | ||||
if salt.utils.which('ovs-vsctl'): | |||||
if salt.utils.path.which('ovs-vsctl'): | |||||
return 'ovs_config' | return 'ovs_config' | ||||
return False | return False | ||||