Skip to content

Commit

Permalink
fix to restoring address mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
chris grzegorczyk committed Feb 2, 2012
1 parent 3127064 commit 1687aa4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -285,7 +285,7 @@ private static VmInstance maybeFindVm( final String instanceId, final String pub
Logs.extreme( ).error( ex );
}
}
if ( vm != null && VmState.RUNNING.equals( vm ) ) {
if ( vm != null && VmState.RUNNING.equals( vm.getState( ) ) ) {
Logs.extreme( ).debug( "Candidate vm which claims this address: " + vm.getInstanceId( ) + " " + vm.getState( ) + " " + publicIp );
if ( publicIp.equals( vm.getPublicAddress( ) ) ) {
Logs.extreme( ).debug( "Found vm which claims this address: " + vm.getInstanceId( ) + " " + vm.getState( ) + " " + publicIp );
Expand Down

0 comments on commit 1687aa4

Please sign in to comment.