Commit 4baffed4 authored by ibuler@qq.com's avatar ibuler@qq.com

base commit

parent 77131a39
......@@ -96,7 +96,7 @@ def perm_user_api(perm_info):
settings = get_object(Setting, name='default')
results = playbook_run(inventory, playbook, settings)
if not results.get('failed', 1) and not results.get('unreachable', ''):
if not results.get('failures', 1) and not results.get('unreachable', ''):
is_success = True
else:
is_success = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment