Permalink
Browse files

sync parent

  • Loading branch information...
2 parents 11f33b9 + b4e1f39 commit bb4001bd448957c24762e5e0ab8243bbb544d658 @grze grze committed Jan 9, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 clc/modules/core/conf/upgrade/upgrade_20_30.groovy
@@ -591,10 +591,12 @@ class upgrade_20_30 extends AbstractUpgradeScript {
if (vol.cluster == "default") {
vol.cluster = System.getProperty("euca.storage.name");
}
- if (vol.cluster == null && vol_meta != null) {
- vol.cluster = vol_meta.sc_name;
- } else {
- throw new RuntimeException("Cannot determine SC for volume " + vol.displayname);
+ if (vol.cluster == null) {
+ if (vol_meta != null) {
+ vol.cluster = vol_meta.sc_name;
+ } else {
+ throw new RuntimeException("Cannot determine SC for volume " + vol.displayname);
+ }
}
// Second "vol.cluster" is partition name
Volume v = new Volume( ufn, vol.displayname, vol.size, vol.cluster + '_sc', vol.cluster, vol.parentsnapshot );

0 comments on commit bb4001b

Please sign in to comment.