CLOUDSTACK-6242: catching all to allow continuation on configuration

error (CLOUDSTACK-7039 through CLOUDSTACK-7042)
This commit is contained in:
Daan Hoogland 2014-07-03 08:41:47 +02:00
parent 48574f2d60
commit b2d613f536
1 changed files with 2 additions and 2 deletions

View File

@ -512,9 +512,9 @@ public class ConfigurationServerImpl extends ManagerBase implements Configuratio
PreparedStatement stmt = txn.prepareAutoCloseStatement(checkSql);
stmt.executeQuery();
tableName = "network_group";
} catch (SQLException ex) {
} catch (Exception ex) {
// if network_groups table exists, create the default security group there
s_logger.debug("Caught SQLException: no network_group ", ex);
s_logger.debug("Caught (SQL?)Exception: no network_group " + ex.getLocalizedMessage());
}
insertSql = "SELECT * FROM " + tableName + " where account_id=2 and name='default'";