Permalink
Browse files

ensure not bogus index

  • Loading branch information...
1 parent 099c8b6 commit a921a47c4342e8eea51f0ff08a911a7ed43e46fe @grze grze committed Feb 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 clc/modules/cluster-manager/src/main/java/com/eucalyptus/vm/VmControl.java
@@ -438,7 +438,7 @@ public StartInstancesResponseType startInstances( final StartInstancesType reque
try {//scope for allocInfo
AdmissionControl.run( ).apply( allocInfo );
PrivateNetworkIndex vmIdx = allocInfo.getAllocationTokens( ).get( 0 ).getNetworkIndex( );
- if ( vmIdx != null ) {
+ if ( vmIdx != null && !PrivateNetworkIndex.bogus( ).equals( vmIdx ) ) {
vmIdx.set( vm );
vm.setNetworkIndex( vmIdx );
}

0 comments on commit a921a47

Please sign in to comment.