mirror of https://github.com/apache/cloudstack.git
fix config export to test backup apis
This commit is contained in:
parent
dc480e07d3
commit
6e420fecd2
|
|
@ -52,7 +52,7 @@ public interface KVMBackupExportService extends Configurable, PluggableService {
|
|||
ConfigKey<Boolean> ExposeKVMBackupExportServiceApis = new ConfigKey<>("Advanced", Boolean.class,
|
||||
"expose.kvm.backup.export.service.apis",
|
||||
"false",
|
||||
"Enable to expose APIs for testing the KVM Backup Export Service.", false, ConfigKey.Scope.Global);
|
||||
"Enable to expose APIs for testing the KVM Backup Export Service.", true, ConfigKey.Scope.Global);
|
||||
/**
|
||||
* Creates a backup session for a VM
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -175,6 +175,7 @@ public class KVMBackupExportServiceImpl extends ManagerBase implements KVMBackup
|
|||
|
||||
backup.setToCheckpointId(toCheckpointId);
|
||||
backup.setFromCheckpointId(fromCheckpointId);
|
||||
backup.setType("FULL");
|
||||
|
||||
Long hostId = vm.getHostId() != null ? vm.getHostId() : vm.getLastHostId();
|
||||
backup.setHostId(hostId);
|
||||
|
|
@ -989,7 +990,8 @@ public class KVMBackupExportServiceImpl extends ManagerBase implements KVMBackup
|
|||
public ConfigKey<?>[] getConfigKeys() {
|
||||
return new ConfigKey[]{
|
||||
ImageTransferPollingInterval,
|
||||
ImageTransferIdleTimeoutSeconds
|
||||
ImageTransferIdleTimeoutSeconds,
|
||||
ExposeKVMBackupExportServiceApis
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue