Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Revert "Use VmInstance instead of VmBootRecord for upgrade"
Browse files Browse the repository at this point in the history
This reverts commit 374e153.
  • Loading branch information
gelinasc committed Mar 26, 2013
1 parent bca7175 commit a16ecc9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@ public enum VmBootRecordUpgrade implements Predicate<Class> {
private static Logger LOG = Logger.getLogger( VmBootRecord.VmBootRecordUpgrade.class );
@Override
public boolean apply( Class arg0 ) {
EntityTransaction db = Entities.get( VmInstance.class );
EntityTransaction db = Entities.get( VmBootRecord.class );
try {
List<VmInstance> entities = Entities.query( new VmInstance( ) );
for ( VmInstance entry : entities ) {
LOG.debug( "Upgrading BootRecord: " + entry.toString() );
List<VmBootRecord> entities = Entities.query( new VmBootRecord( ) );
for ( VmBootRecord entry : entities ) {
LOG.debug( "Upgrading: " + entry.toString() );
entry.setDeleteOnTerminate(false);
}
db.commit( );
Expand Down

0 comments on commit a16ecc9

Please sign in to comment.