use of org.ovirt.engine.ui.uicompat.Enlistment in project ovirt-engine by oVirt.
the class AddDataCenterRM method rollback5.
private void rollback5() {
Enlistment enlistment = context.enlistment;
EnlistmentContext enlistmentContext = (EnlistmentContext) enlistment.getContext();
// Try to remove data center.
if (enlistmentContext.getDataCenterId() != null) {
Frontend.getInstance().runAction(ActionType.RemoveStoragePool, new StoragePoolParametersBase(enlistmentContext.getDataCenterId()));
}
// Call done, no matter whether the data center deletion was successful.
context.enlistment = null;
enlistment.done();
}
Aggregations