Merge pull request #47550 from pcn/fix-disable-term-protect-in-2018.3

Fixes a bad deletion I did that only surfaced in 2018.3
This commit is contained in:
Nicole Thomas 2018-05-09 09:36:32 -04:00 committed by GitHub
commit 85284caaf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3675,6 +3675,25 @@ def enable_term_protect(name, call=None):
return _toggle_term_protect(name, 'true')
def disable_term_protect(name, call=None):
'''
Disable termination protection on a node
CLI Example:
.. code-block:: bash
salt-cloud -a disable_term_protect mymachine
'''
if call != 'action':
raise SaltCloudSystemExit(
'The enable_term_protect action must be called with '
'-a or --action.'
)
return _toggle_term_protect(name, 'false')
def disable_detailed_monitoring(name, call=None):
'''
Enable/disable detailed monitoring on a node