Skip to content

Commit

Permalink
use salt.utils.versions.warn_until instead of __utils__
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch3LL committed Dec 23, 2019
1 parent 47d8f6d commit 98b34b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions salt/utils/openstack/neutron.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

# Import salt libs
from salt import exceptions
import salt.utils.versions

# Get logging started
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -81,8 +82,8 @@ def __init__(
'''
Set up neutron credentials
'''
__utils__['versions.warn_until'](
'Neon',
salt.utils.versions.warn_until(
'Aluminium',
(
'The neutron module has been deprecated and will be removed in {version}. '
'Please update to using the neutronng module'
Expand Down

0 comments on commit 98b34b3

Please sign in to comment.