set the state field, not unused local

Signed-off-by: Dave Brosius <dbrosius@mebigfatguy.com>
This commit is contained in:
Dave Brosius 2013-06-29 17:04:13 -04:00 committed by Daan Hoogland
parent b33a8371bc
commit 3fd95fe231
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public class NetworkVO implements Network {
this.dataCenterId = dataCenterId;
this.physicalNetworkId = physicalNetworkId;
if (state == null) {
state = State.Allocated;
this.state = State.Allocated;
} else {
this.state = state;
}