Browse Source

fix(deprecation): update to new method (#214)

Signed-off-by: Felipe Zipitria <fzipitria@perceptyx.com>
pull/218/head
Felipe Zipitría 4 years ago
parent
commit
f8498273b5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      _modules/ovs_config.py

+ 2
- 2
_modules/ovs_config.py View File

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



Loading…
Cancel
Save