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
147b04b6
Commit
147b04b6
authored
Sep 02, 2015
by
Abhijit Menon-Sen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated function definition (fallout from earlier repeated merge)
parent
f162990c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
lib/ansible/inventory/__init__.py
+0
-17
No files found.
lib/ansible/inventory/__init__.py
View file @
147b04b6
...
@@ -204,23 +204,6 @@ class Inventory(object):
...
@@ -204,23 +204,6 @@ class Inventory(object):
return
hosts
return
hosts
def
_split_pattern
(
self
,
pattern
):
"""
takes e.g. "webservers[0:5]:dbservers:others"
and returns ["webservers[0:5]", "dbservers", "others"]
"""
term
=
re
.
compile
(
r'''(?: # We want to match something comprising:
[^:\[\]] # (anything other than ':', '[', or ']'
| # ...or...
\[[^\]]*\] # a single complete bracketed expression)
)* # repeated as many times as possible
'''
,
re
.
X
)
return
[
x
for
x
in
term
.
findall
(
pattern
)
if
x
]
def
_evaluate_patterns
(
self
,
patterns
):
def
_evaluate_patterns
(
self
,
patterns
):
"""
"""
Takes a list of patterns and returns a list of matching host names,
Takes a list of patterns and returns a list of matching host names,
...
...
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