Revision 78317974 src/dm/DispatchManagerActions.cc

View differences:

src/dm/DispatchManagerActions.cc
772 772
    ostringstream oss;
773 773

  
774 774
    VirtualMachine::VmState state;
775
    bool is_public_host;
775
    bool is_public_host = false;
776 776

  
777 777
    vm   = vmpool->get(vid,true);
778 778

  
779
    host           = hpool->get(vm->get_hid(),true);
780
    is_public_host = host->is_public_cloud();
781
    host->unlock();
782
    
779
    if(vm->hasHistory())
780
    {
781
        host           = hpool->get(vm->get_hid(),true);
782
        is_public_host = host->is_public_cloud();
783
        host->unlock();
784
    }
783 785

  
784 786
    if ( vm == 0 )
785 787
    {

Also available in: Unified diff