Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
added termination protection usage comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mafrosis committed Feb 13, 2013
1 parent b1d9b99 commit 146928a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions saltcloud/clouds/aws.py
Expand Up @@ -501,13 +501,21 @@ def destroy(name):
def enable_term_protect(name):
'''
Enable termination protection on a node
CLI Example::
salt-cloud -a enable_term_protect mymachine
'''
_toggle_term_protect(name, True)


def disable_term_protect(name):
'''
Disable termination protection on a node
CLI Example::
salt-cloud -a disable_term_protect mymachine
'''
_toggle_term_protect(name, False)

Expand Down

0 comments on commit 146928a

Please sign in to comment.