Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-elk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
nomad-lab
parser-elk
Commits
0a43285a
Commit
0a43285a
authored
Mar 20, 2020
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Remove dependency on old metainfo.
parent
a6dbd8ce
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#81324
failed
Aug 31, 2020
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
elkparser/parser_elk.py
+2
-9
2 additions, 9 deletions
elkparser/parser_elk.py
with
2 additions
and
9 deletions
elkparser/parser_elk.py
+
2
−
9
View file @
0a43285a
...
@@ -310,10 +310,6 @@ cachingLevelForMetaName = {
...
@@ -310,10 +310,6 @@ cachingLevelForMetaName = {
}
}
import
nomad_meta_info
metaInfoPath
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
nomad_meta_info
.
__file__
)),
"
elk.nomadmetainfo.json
"
))
metaInfoEnv
,
warnings
=
loadJsonFile
(
filePath
=
metaInfoPath
,
dependencyLoader
=
None
,
extraArgsHandling
=
InfoKindEl
.
ADD_EXTRA_ARGS
,
uri
=
None
)
class
ElkParser
():
class
ElkParser
():
"""
A proper class envolop for running this parser from within python.
"""
"""
A proper class envolop for running this parser from within python.
"""
def
__init__
(
self
,
backend
,
**
kwargs
):
def
__init__
(
self
,
backend
,
**
kwargs
):
...
@@ -323,17 +319,14 @@ class ElkParser():
...
@@ -323,17 +319,14 @@ class ElkParser():
from
unittest.mock
import
patch
from
unittest.mock
import
patch
logging
.
info
(
'
elk parser started
'
)
logging
.
info
(
'
elk parser started
'
)
logging
.
getLogger
(
'
nomadcore
'
).
setLevel
(
logging
.
WARNING
)
logging
.
getLogger
(
'
nomadcore
'
).
setLevel
(
logging
.
WARNING
)
backend
=
self
.
backend_factory
(
meta
I
nfo
Env
)
backend
=
self
.
backend_factory
(
"
elk.nomad
meta
i
nfo
.json
"
)
with
patch
.
object
(
sys
,
'
argv
'
,
[
'
<exe>
'
,
'
--uri
'
,
'
nmd://uri
'
,
mainfile
]):
with
patch
.
object
(
sys
,
'
argv
'
,
[
'
<exe>
'
,
'
--uri
'
,
'
nmd://uri
'
,
mainfile
]):
mainFunction
(
mainFunction
(
mainFileDescription
=
mainFileDescription
,
mainFileDescription
=
mainFileDescription
,
metaInfoEnv
=
metaInfoEnv
,
metaInfoEnv
=
None
,
parserInfo
=
parserInfo
,
parserInfo
=
parserInfo
,
cachingLevelForMetaName
=
cachingLevelForMetaName
,
cachingLevelForMetaName
=
cachingLevelForMetaName
,
superContext
=
ElkContext
(),
superContext
=
ElkContext
(),
superBackend
=
backend
,
superBackend
=
backend
,
defaultSectionCachingLevel
=
True
)
defaultSectionCachingLevel
=
True
)
return
backend
return
backend
if
__name__
==
"
__main__
"
:
mainFunction
(
mainFileDescription
,
metaInfoEnv
,
parserInfo
,
cachingLevelForMetaName
=
cachingLevelForMetaName
,
superContext
=
ElkContext
())
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment