mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
veeam: Fix escape powershell comand when listing Veeam repository names (#6943)
PR #5774 introduced a functionality to allow operators to choose in which Veeam's repository, if more than one is configured, ACS' clone job will be executed. However, a change was missing in the PR and caused the errors reported in #6599. This PR addresses the fix for #6599. Co-authored-by: SadiJr <sadi@scclouds.com.br>
This commit is contained in:
parent
8aaa5edaa1
commit
19a4e9dd50
@ -369,7 +369,7 @@ public class VeeamClient {
|
||||
protected String getRepositoryNameFromJob(String backupName) {
|
||||
final List<String> cmds = Arrays.asList(
|
||||
String.format("$Job = Get-VBRJob -name \"%s\"", backupName),
|
||||
"$Job.GetBackupTargetRepository() ^| select Name | Format-List"
|
||||
"$Job.GetBackupTargetRepository() ^| select Name ^| Format-List"
|
||||
);
|
||||
Pair<Boolean, String> result = executePowerShellCommands(cmds);
|
||||
if (result == null || !result.first()) {
|
||||
@ -717,4 +717,4 @@ public class VeeamClient {
|
||||
}
|
||||
return new Pair<>(result.first(), restoreLocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user