Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
e26810fc
Commit
e26810fc
authored
6 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SW-488
: handle non-list commands as well
parent
ecfa44bc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCS/PyCommon/lcu_utils.py
+2
-1
2 additions, 1 deletion
LCS/PyCommon/lcu_utils.py
with
2 additions
and
1 deletion
LCS/PyCommon/lcu_utils.py
+
2
−
1
View file @
e26810fc
...
@@ -44,7 +44,8 @@ def wrap_command_in_lcu_station_ssh_call(cmd, station, via_head=True):
...
@@ -44,7 +44,8 @@ def wrap_command_in_lcu_station_ssh_call(cmd, station, via_head=True):
:param bool via_head: when True, route the cmd first via the lcuhead node
:param bool via_head: when True, route the cmd first via the lcuhead node
:return: the same subprocess cmd list, but then wrapped with lcu ssh calls
:return: the same subprocess cmd list, but then wrapped with lcu ssh calls
'''
'''
remote_cmd
=
ssh_cmd_list
(
stationname2hostname
(
station
),
'
lofarsys
'
)
+
cmd
cmd_list
=
cmd
if
isinstance
(
cmd
,
list
)
else
[
cmd
]
remote_cmd
=
ssh_cmd_list
(
stationname2hostname
(
station
),
'
lofarsys
'
)
+
cmd_list
if
via_head
:
if
via_head
:
return
wrap_command_in_lcu_head_node_ssh_call
(
remote_cmd
)
return
wrap_command_in_lcu_head_node_ssh_call
(
remote_cmd
)
...
...
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
register
or
sign in
to comment