Permalink
Browse files

do not attempt to upgrade vmwarebroker if it did not exist in the pre…

…vious installed version
  • Loading branch information...
1 parent 01bf107 commit e26724e9b0d1f51314eae6ea28534da21ac3f80c Andy Grimm committed Dec 2, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 clc/modules/core/conf/upgrade/upgrade_20_30.groovy
@@ -619,6 +619,10 @@ class upgrade_20_30 extends AbstractUpgradeScript {
def oldHome = System.getProperty( "euca.upgrade.old.dir" );
def newHome = System.getProperty( "euca.upgrade.new.dir" );
+ if (!has_table('eucalyptus_config', 'config_vmwarebroker')) {
+ return true;
+ }
+
connMap['eucalyptus_config'].rows('SELECT * FROM config_vmwarebroker').each{
EntityWrapper<VMwareBrokerConfiguration> dbcfg = EntityWrapper.get(VMwareBrokerConfiguration.class);
VMwareBrokerConfiguration broker = new VMwareBrokerConfiguration(it.config_component_name, it.config_component_name + '_vmbroker', it.config_component_hostname, it.config_component_port);

0 comments on commit e26724e

Please sign in to comment.