Browse Source

fix(deprecation): update to new method

Signed-off-by: Felipe Zipitria <fzipitria@perceptyx.com>
pull/214/head
Felipe Zipitria 4 years ago
parent
commit
fd75b1ad2b
No account linked to committer's email address
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