Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
baad0a62
Commit
baad0a62
authored
Apr 15, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10723 from mscherer/fix_errors_playbook
Fix errors reporting for playbook/*
parents
3f03f76f
b20d5452
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
v2/ansible/playbook/become.py
+3
-3
v2/ansible/playbook/playbook_include.py
+1
-0
No files found.
v2/ansible/playbook/become.py
View file @
baad0a62
...
...
@@ -45,11 +45,11 @@ class Become:
if
has_become
:
msg
=
'The become params ("become", "become_user") and'
if
has_sudo
:
raise
errors
.
AnsibleParserError
(
'
%
s sudo params ("sudo", "sudo_user") cannot be used together'
%
msg
)
raise
AnsibleParserError
(
'
%
s sudo params ("sudo", "sudo_user") cannot be used together'
%
msg
)
elif
has_su
:
raise
errors
.
AnsibleParserError
(
'
%
s su params ("su", "su_user") cannot be used together'
%
msg
)
raise
AnsibleParserError
(
'
%
s su params ("su", "su_user") cannot be used together'
%
msg
)
elif
has_sudo
and
has_su
:
raise
errors
.
AnsibleParserError
(
'sudo params ("sudo", "sudo_user") and su params ("su", "su_user") cannot be used together'
)
raise
AnsibleParserError
(
'sudo params ("sudo", "sudo_user") and su params ("su", "su_user") cannot be used together'
)
def
_preprocess_data_become
(
self
,
ds
):
"""Preprocess the playbook data for become attributes
...
...
v2/ansible/playbook/playbook_include.py
View file @
baad0a62
...
...
@@ -27,6 +27,7 @@ from ansible.playbook.attribute import FieldAttribute
from
ansible.playbook.base
import
Base
from
ansible.playbook.conditional
import
Conditional
from
ansible.playbook.taggable
import
Taggable
from
ansible.errors
import
AnsibleParserError
class
PlaybookInclude
(
Base
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment