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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Leymonerie
slapos.toolbox
Commits
a2b8dbbd
Commit
a2b8dbbd
authored
Nov 14, 2018
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resilient: do not compute the signature for same file several times
parent
56895d5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
slapos/resilient/runner_utils.py
slapos/resilient/runner_utils.py
+23
-20
No files found.
slapos/resilient/runner_utils.py
View file @
a2b8dbbd
...
...
@@ -109,6 +109,7 @@ def writeSignatureFile(slappart_signature_method_dict, runner_working_path, sign
continue
# Find if special signature function should be applied
signature_process
=
None
for
special_slappart
in
special_slappart_list
:
backup_identity_script_path
=
os
.
path
.
join
(
runner_working_path
,
...
...
@@ -121,7 +122,9 @@ def writeSignatureFile(slappart_signature_method_dict, runner_working_path, sign
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
)
break
if
signature_process
:
(
output
,
error_output
)
=
signature_process
.
communicate
(
'
\
0
'
.
join
([
os
.
path
.
join
(
dirpath
,
filename
)
for
filename
in
filename_list
])
)
...
...
@@ -129,8 +132,8 @@ def writeSignatureFile(slappart_signature_method_dict, runner_working_path, sign
if
signature_process
.
returncode
!=
0
:
print
(
"An issue occured when calculating the custom signature"
" with %s :
\
n
%s"
%
(
backup_identity_script_path
,
error_output
" with %s :
\
n
%s
\
n
%s"
%
(
backup_identity_script_path
,
output
,
error_output
)
)
sys
.
exit
(
1
)
...
...
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