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
argo
nrm
Commits
41a91901
Commit
41a91901
authored
Dec 19, 2017
by
Kamil Iskra
Browse files
Improve formatting and commentary
parent
b666f1c2
Changes
1
Show whitespace changes
Inline
Side-by-side
nrm/containers.py
View file @
41a91901
...
@@ -65,9 +65,13 @@ class ContainerManager(object):
...
@@ -65,9 +65,13 @@ class ContainerManager(object):
else
:
else
:
argv
=
[]
argv
=
[]
# for now we place it within the container, but it's probably better
# It would've been better if argo-perf-wrapper wrapped around
# if it's outside (so move it to NodeOSClient?)
# argo-nodeos-config and not the final command -- that way it would
if
hasattr
(
manifest
.
app
.
isolators
,
'perfwrapper'
)
and
hasattr
(
manifest
.
app
.
isolators
.
perfwrapper
,
'enabled'
)
and
manifest
.
app
.
isolators
.
perfwrapper
.
enabled
in
[
"1"
,
"True"
]:
# be running outside of the container. However, because
# argo-nodeos-config is suid root, perf can't monitor it.
if
hasattr
(
manifest
.
app
.
isolators
,
'perfwrapper'
):
if
hasattr
(
manifest
.
app
.
isolators
.
perfwrapper
,
'enabled'
):
if
manifest
.
app
.
isolators
.
perfwrapper
.
enabled
in
[
"1"
,
"True"
]:
argv
.
append
(
'argo-perf-wrapper'
)
argv
.
append
(
'argo-perf-wrapper'
)
argv
.
append
(
command
)
argv
.
append
(
command
)
...
...
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