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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]