fixed conditional error message (#36476)
This commit is contained in:
parent
77b903bd85
commit
f207897f32
16 changed files with 16 additions and 16 deletions
|
@ -205,7 +205,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -205,7 +205,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -248,7 +248,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -214,7 +214,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -213,7 +213,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -222,7 +222,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -208,7 +208,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -263,7 +263,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -230,7 +230,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -209,7 +209,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result = {
|
result = {
|
||||||
|
|
|
@ -161,7 +161,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -434,7 +434,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result = {
|
result = {
|
||||||
|
|
|
@ -371,7 +371,7 @@ def main():
|
||||||
if port and port not in have_port:
|
if port and port not in have_port:
|
||||||
failed_conditions.append('port ' + port)
|
failed_conditions.append('port ' + port)
|
||||||
if failed_conditions:
|
if failed_conditions:
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
|
@ -233,7 +233,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -199,7 +199,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result.update({
|
result.update({
|
||||||
|
|
|
@ -220,7 +220,7 @@ def main():
|
||||||
|
|
||||||
if conditionals:
|
if conditionals:
|
||||||
failed_conditions = [item.raw for item in conditionals]
|
failed_conditions = [item.raw for item in conditionals]
|
||||||
msg = 'One or more conditional statements have not be satisfied'
|
msg = 'One or more conditional statements have not been satisfied'
|
||||||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||||
|
|
||||||
result = {
|
result = {
|
||||||
|
|
Loading…
Reference in a new issue