Skip to content

Commit

Permalink
Merge pull request #55592 from Ch3LL/issue_49414
Browse files Browse the repository at this point in the history
Add deprecation warning path for glance state and execution module
  • Loading branch information
dwoz authored Dec 20, 2019
2 parents b4887f9 + 59673bd commit 8313598
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion salt/modules/glance.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _auth(profile=None, api_version=2, **connection_args):
Only intended to be used within glance-enabled modules
'''
__utils__['versions.warn_until'](
'Neon',
'Aluminium',
(
'The glance module has been deprecated and will be removed in {version}. '
'Please update to using the glanceng module'
Expand Down
7 changes: 7 additions & 0 deletions salt/states/glance.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ def image_present(name, visibility='public', protected=None,
- disk_format ('raw' (default), 'vhd', 'vhdx', 'vmdk', 'vdi', 'iso',
'qcow2', 'aki', 'ari' or 'ami')
'''
__utils__['versions.warn_until'](
'Aluminium',
(
'The glance state module has been deprecated and will be removed in {version}. '
'Please update to using the glance_image state module'
),
)
ret = {'name': name,
'changes': {},
'result': True,
Expand Down
2 changes: 1 addition & 1 deletion salt/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class SaltStackVersion(object):
'Neon' : (MAX_SIZE - 99, 0),
'Sodium' : (MAX_SIZE - 98, 0),
'Magnesium' : (MAX_SIZE - 97, 0),
'Aluminium' : (MAX_SIZE - 96, 0),
# pylint: disable=E8265
#'Aluminium' : (MAX_SIZE - 96, 0),
#'Silicon' : (MAX_SIZE - 95, 0),
#'Phosphorus' : (MAX_SIZE - 94, 0),
#'Sulfur' : (MAX_SIZE - 93, 0),
Expand Down

0 comments on commit 8313598

Please sign in to comment.