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
72faf8eb
Commit
72faf8eb
authored
Aug 11, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix indents
parent
c9a5ce36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
lib/ansible/callbacks.py
+2
-1
lib/ansible/inventory/__init__.py
+1
-1
lib/ansible/playbook/play.py
+2
-2
No files found.
lib/ansible/callbacks.py
View file @
72faf8eb
...
...
@@ -397,7 +397,8 @@ class PlaybookCallbacks(object):
while
True
:
result
=
prompt
(
msg
,
private
)
second
=
prompt
(
"confirm "
+
msg
,
private
)
if
result
==
second
:
break
if
result
==
second
:
break
print
"***** VALUES ENTERED DO NOT MATCH ****"
else
:
result
=
prompt
(
msg
,
private
)
...
...
lib/ansible/inventory/__init__.py
View file @
72faf8eb
...
...
@@ -121,7 +121,7 @@ class Inventory(object):
# exclude hosts mentioned in any restriction (ex: failed hosts)
if
self
.
_restriction
is
not
None
:
hosts
=
[
h
for
h
in
hosts
if
h
.
name
in
self
.
_restriction
]
hosts
=
[
h
for
h
in
hosts
if
h
.
name
in
self
.
_restriction
]
return
hosts
...
...
lib/ansible/playbook/play.py
View file @
72faf8eb
...
...
@@ -46,8 +46,8 @@ class Play(object):
''' constructor loads from a play datastructure '''
for
x
in
ds
.
keys
():
if
not
x
in
Play
.
VALID_KEYS
:
raise
errors
.
AnsibleError
(
"
%
s is not a legal parameter in an Ansible Playbook"
%
x
)
if
not
x
in
Play
.
VALID_KEYS
:
raise
errors
.
AnsibleError
(
"
%
s is not a legal parameter in an Ansible Playbook"
%
x
)
# TODO: more error handling
...
...
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