Search in sources :

Example 1 with MigrateOnErrorOptions

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);
    }
}
Also used : MigrateOnErrorOptions(org.ovirt.engine.core.common.businessentities.MigrateOnErrorOptions)

Aggregations

MigrateOnErrorOptions (org.ovirt.engine.core.common.businessentities.MigrateOnErrorOptions)1