Issue-ID: SDC-2915
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I4e6f27b707b1bdbbecf9a97606c9a655d834fe56
}
return result;
} finally {
- if ( result.isRight() ){
+ if ( result != null && result.isRight() ){
// undo checkout resource in case of failure
LOGGER.debug("Failed to update Allotted resource {} {}, Error {}. UNDOCHEKOUT our resource", resource.getName(), resource.getUniqueId(), result.right().value());
-
+
upgradeStatus.addServiceStatus(request.getServiceId(), ActionStatus.GENERAL_ERROR);
}
}