Skip to content

Commit d61af4e

Browse files
committed
Fix retryRegex typo: Syncronization -> Synchronization The regex pattern didn't match the actual retry message from backube/pvc-transfer, so retries were never detected.
Signed-off-by: Ran Wurmbrand <rwurmbra@redhat.com>
1 parent 6e61964 commit d61af4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/transfer-pvc/progress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func parseRsyncLogs(rawLogs string) (p *Progress, unprocessedData string) {
408408
finalFileCountRegex := regexp.MustCompile(`Number of regular files transferred: (.*)`)
409409
unprocessedLines := regexp.MustCompile(`.*?\n(.*)$`)
410410
// retries
411-
retryRegex := regexp.MustCompile(`Syncronization failed. Retrying in \d+ seconds. Retry (\d+)/.*`)
411+
retryRegex := regexp.MustCompile(`Synchronization failed. Retrying in \d+ seconds. Retry (\d+)/.*`)
412412

413413
inProgressLines := fileProgressRegex.FindAllStringSubmatch(rawLogs, -1)
414414
for _, matched := range inProgressLines {

0 commit comments

Comments
 (0)