Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
114a5c68
Commit
114a5c68
authored
Apr 10, 2024
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
promise/plugin/check_sdr_busy: fix no permission to check sdr
parent
8e269cd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slapos/promise/plugin/check_sdr_busy.py
slapos/promise/plugin/check_sdr_busy.py
+1
-1
No files found.
slapos/promise/plugin/check_sdr_busy.py
View file @
114a5c68
...
...
@@ -25,7 +25,7 @@ class RunPromise(GenericPromise):
return
try
:
out
=
subprocess
.
check_output
([
sdr
+
'/sdr_util'
,
'-c'
,
sdr_dev
,
'-d'
,
dma_chan
,
'version'
],
stderr
=
subprocess
.
STDOUT
)
'sudo'
,
sdr
+
'/sdr_util'
,
'-c'
,
sdr_dev
,
'-d'
,
dma_chan
,
'version'
],
stderr
=
subprocess
.
STDOUT
)
except
subprocess
.
CalledProcessError
as
e
:
if
e
.
returncode
==
1
and
\
(
"DMA channel is already opened"
in
e
.
output
.
decode
()
or
\
...
...
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