Only abort redeploymebts
@@ -170,7 +170,10 @@ public class Deployment implements com.yahoo.config.provision.Deployment {
throw new IllegalStateException(localSession.logPre() + "Session " + localSession.getSessionId() + " is already active");
if (Session.Status.NEW.equals(localSession.getStatus()))
- throw new IllegalStateException(localSession.logPre() + "Session " + localSession.getSessionId() + " is not prepared");
+ throw new IllegalStateException(localSession.logPre() + "Session " + localSession.getSessionId() + " is not
+
+ if ( ! localSession.getMetaData().isInternalRedeploy())
+ return;
if (preparing.isEmpty())
throw new IllegalStateException("No session is currently being prepared for '" + session.getApplicationId() + "'");
