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
32034fee
Commit
32034fee
authored
Aug 13, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add deprecation warning regarding host patterns
parent
6bf6b9fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lib/ansible/inventory/__init__.py
+10
-0
No files found.
lib/ansible/inventory/__init__.py
View file @
32034fee
...
...
@@ -34,6 +34,12 @@ from ansible.inventory.host import Host
from
ansible.plugins
import
vars_loader
from
ansible.utils.vars
import
combine_vars
try
:
from
__main__
import
display
except
ImportError
:
from
ansible.utils.display
import
Display
display
=
Display
()
class
Inventory
(
object
):
"""
Host inventory for ansible.
...
...
@@ -183,6 +189,10 @@ class Inventory(object):
# either a list of patterns or a string like 'pat1:pat2').
if
isinstance
(
pattern
,
list
):
pattern
=
':'
.
join
(
pattern
)
if
';'
in
pattern
or
','
in
pattern
:
display
.
deprecated
(
"The use of ',' or ';' in host patterns has been removed"
,
version
=
2.0
,
removed
=
True
)
patterns
=
self
.
_split_pattern
(
pattern
)
hosts
=
self
.
_evaluate_patterns
(
patterns
)
...
...
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