Example #1
0
 private CruiseConfig handleMergeException(String md5, UiBasedConfigUpdateCommand updateCommand) {
   CruiseConfig updatedConfig;
   try {
     updateCommand.update(clonedConfigForEdit());
     updatedConfig = updateCommand.cruiseConfig();
   } catch (Exception oops) {
     // Ignore this. We are trying to retain the user's input. However, if things have changed so
     // massively that we cannot apply this update we cannot do anything.
     // But hey, at least we tried...
     updatedConfig = clonedConfigForEdit();
   }
   setMD5(md5, updatedConfig);
   return updatedConfig;
 }