You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/06/23 14:41:19 UTC
[GitHub] [cloudstack] DaanHoogland commented on a diff in pull request #6473: Fix backup dates
DaanHoogland commented on code in PR #6473:
URL: https://github.com/apache/cloudstack/pull/6473#discussion_r905108068
##########
plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java:
##########
@@ -636,15 +638,19 @@ public Map<String, Backup.Metric> getBackupMetrics() {
private Backup.RestorePoint getRestorePointFromBlock(String[] parts) {
LOG.debug(String.format("Processing block of restore points: [%s].", StringUtils.join(parts, ", ")));
String id = null;
- String created = null;
+ Date created = null;
String type = null;
for (String part : parts) {
if (part.matches("Id(\\s)+:(.)*")) {
String[] split = part.split(":");
id = split[1].trim();
} else if (part.matches("CreationTime(\\s)+:(.)*")) {
String [] split = part.split(":", 2);
- created = split[1].trim();
+ split[1] = StringUtils.trim(split[1]);
+ String [] time = split[1].split(":|/| ");
Review Comment:
```suggestion
String [] time = split[1].split("[:/ ]");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org