-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return backup stats in backup action (#337)
* Adding backup stats to return Parsing the log from the backup execution to find the size and file count. * Adding empty file count test case * Adding empty size test cases * Fix backup-all and test checks * Fix copy pasted comment * Move regex compiles out of loops PR suggestion * Add slice bound checks on match Per code review request, adding slice bound checks on regex matches for SnapshotIDFromBackupLog and SnapshotStatsFromBackupLog. * Return struct instead of unnamed strings Returning a struct that maps the parsed outputs from the backup action, for readability and less error prone. * Debug log when can't parse stats Adding a debug log when either file count or size come back empty
- Loading branch information
1 parent
6050c5a
commit e6ca11f
Showing
5 changed files
with
114 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters