Revision dc075e09 src/vm/VirtualMachine.cc

View differences:

src/vm/VirtualMachine.cc
980 980
        oss.str("");
981 981
        oss << "CLUSTER_ID = " << cluster_id;
982 982

  
983
        user_obj_template->get("SCHED_REQUIREMENTS", requirements);
984
        user_obj_template->erase("SCHED_REQUIREMENTS");
985

  
986
        if ( !requirements.empty() )
987
        {
988
            oss << " & ( " << requirements << " )";
989
        }
990

  
991
        user_obj_template->add("SCHED_REQUIREMENTS", oss.str());
983
        obj_template->add("AUTOMATIC_REQUIREMENTS", oss.str());
992 984
    }
993 985

  
994 986
    return 0;

Also available in: Unified diff