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
33faaaa9
Commit
33faaaa9
authored
Oct 15, 2013
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4529 from bcoca/warns_no_conflict
fixed name colision between warnings dict and module
parents
7061c990
bd9acedb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/utils/__init__.py
+3
-3
No files found.
lib/ansible/utils/__init__.py
View file @
33faaaa9
...
@@ -47,7 +47,7 @@ VERBOSITY=0
...
@@ -47,7 +47,7 @@ VERBOSITY=0
# list of all deprecation messages to prevent duplicate display
# list of all deprecation messages to prevent duplicate display
deprecations
=
{}
deprecations
=
{}
warn
ing
s
=
{}
warns
=
{}
MAX_FILE_SIZE_FOR_DIFF
=
1
*
1024
*
1024
MAX_FILE_SIZE_FOR_DIFF
=
1
*
1024
*
1024
...
@@ -990,9 +990,9 @@ def warning(msg):
...
@@ -990,9 +990,9 @@ def warning(msg):
new_msg
=
"
\n
[WARNING]:
%
s"
%
msg
new_msg
=
"
\n
[WARNING]:
%
s"
%
msg
wrapped
=
textwrap
.
wrap
(
new_msg
,
79
)
wrapped
=
textwrap
.
wrap
(
new_msg
,
79
)
new_msg
=
"
\n
"
.
join
(
wrapped
)
+
"
\n
"
new_msg
=
"
\n
"
.
join
(
wrapped
)
+
"
\n
"
if
new_msg
not
in
warn
ing
s
:
if
new_msg
not
in
warns
:
display
(
new_msg
,
color
=
'bright purple'
,
stderr
=
True
)
display
(
new_msg
,
color
=
'bright purple'
,
stderr
=
True
)
warn
ing
s
[
new_msg
]
=
1
warns
[
new_msg
]
=
1
def
combine_vars
(
a
,
b
):
def
combine_vars
(
a
,
b
):
...
...
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