java/code/src/com/redhat/rhn/domain/kickstart/KickstartSession.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit bb2b4d9931898b8c68767c368dfffba6f610d561
Author: Justin Sherrill <jsherril(a)redhat.com>
Date: Wed Apr 29 14:14:07 2009 -0400
497867 - fixed bug in logic after changing hibernate mappings
diff --git a/java/code/src/com/redhat/rhn/domain/kickstart/KickstartSession.java
b/java/code/src/com/redhat/rhn/domain/kickstart/KickstartSession.java
index 71f1c0b..bc27c8b 100644
--- a/java/code/src/com/redhat/rhn/domain/kickstart/KickstartSession.java
+++ b/java/code/src/com/redhat/rhn/domain/kickstart/KickstartSession.java
@@ -16,7 +16,6 @@ package com.redhat.rhn.domain.kickstart;
import com.redhat.rhn.common.security.SessionSwap;
import com.redhat.rhn.domain.action.Action;
-import com.redhat.rhn.domain.action.ActionFactory;
import com.redhat.rhn.domain.common.CommonFactory;
import com.redhat.rhn.domain.common.TinyUrl;
import
com.redhat.rhn.domain.org.Org;
@@ -446,12 +445,9 @@ public class KickstartSession {
*/
public void markFailed(String messageIn) {
if (this.action != null) {
- Long parentId = this.action.getPrerequisite().getId();
Action parentAction = this.action;
-
- while (parentId != null) {
- parentAction = ActionFactory.lookupById(parentId);
- parentId = parentAction.getPrerequisite().getId();
+ while (parentAction.getPrerequisite() != null) {
+ parentAction = this.action.getPrerequisite();
}
if (this.currentServer() != null) {
ActionManager.