Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
7c092ddf
Commit
7c092ddf
authored
Mar 01, 2018
by
Samuel GAIST
Browse files
[execution][local] Remove use of Prefix
parent
57da5bf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/execution/local.py
View file @
7c092ddf
...
...
@@ -63,8 +63,7 @@ class LocalExecutor(BaseExecutor):
Parameters:
prefix (beat.backend.python.utils.Prefix): Establishes the prefix of
your installation.
prefix (str): Establishes the prefix of your installation.
data (dict, str): The piece of data representing the block to be executed.
It must validate against the schema defined for execution blocks. If a
...
...
@@ -256,7 +255,7 @@ class LocalExecutor(BaseExecutor):
exc_type
,
exc_value
,
exc_traceback
=
sys
.
exc_info
()
tb
=
traceback
.
extract_tb
(
exc_traceback
)
contributions_prefix
=
os
.
path
.
join
(
prefix
.
paths
[
0
]
,
contribution_kind
)
+
os
.
sep
contributions_prefix
=
os
.
path
.
join
(
prefix
,
contribution_kind
)
+
os
.
sep
for
first_line
,
line
in
enumerate
(
tb
):
if
line
[
0
].
startswith
(
contributions_prefix
):
...
...
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