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

@@ -6,7 +6,7 @@ Support for Open vSwitch database configuration.
from __future__ import absolute_import

import logging
import salt.utils
import salt.utils.path

log = logging.getLogger(__name__)

@@ -15,7 +15,7 @@ def __virtual__():
'''
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 False


Loading…
Cancel
Save