Skip to content

Commit

Permalink
Fix on_denied and on_missing documentation bugs
Browse files Browse the repository at this point in the history
The default value for on_denied should be "error", while the default
value for on_missing is incorrectly listed as "error" in the
documentation.
  • Loading branch information
jsf9k committed Jan 14, 2022
1 parent ece90cb commit b8473f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/lookup/aws_ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
- C(error) will raise a fatal error when the SSM parameter is missing.
- C(skip) will silently ignore the missing SSM parameter.
- C(warn) will skip over the missing SSM parameter but issue a warning.
default: error
default: skip
type: string
choices: ['error', 'skip', 'warn']
version_added: 2.0.0
Expand Down Expand Up @@ -174,7 +174,7 @@ class LookupModule(LookupBase):
def run(self, terms, variables=None, boto_profile=None, aws_profile=None,
aws_secret_key=None, aws_access_key=None, aws_security_token=None, region=None,
bypath=False, shortnames=False, recursive=False, decrypt=True, on_missing="skip",
on_denied="skip"):
on_denied="error"):
'''
:arg terms: a list of lookups to run.
e.g. ['parameter_name', 'parameter_name_too' ]
Expand Down

0 comments on commit b8473f7

Please sign in to comment.