use of org.ovirt.engine.core.common.businessentities.MigrateOnErrorOptions in project ovirt-engine by oVirt.
the class ClusterOperationCommandBase method updateMigrateOnError.
protected void updateMigrateOnError() {
if (getCluster() != null && getCluster().getMigrateOnError() == null) {
boolean isMigrationSupported = FeatureSupported.isMigrationSupported(getArchitecture(), getCluster().getCompatibilityVersion());
MigrateOnErrorOptions migrateOnError = isMigrationSupported ? MigrateOnErrorOptions.YES : MigrateOnErrorOptions.NO;
getCluster().setMigrateOnError(migrateOnError);
}
}
Aggregations