Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionQueue.cpp

    rf3db60 r601ef8  
    6363    history(new ActionHistory),
    6464#ifndef HAVE_ACTION_THREAD
    65     lastActionOk(true),
     65    lastActionOk(true)
    6666#else
    6767    CurrentAction(0),
    6868    lastActionOk(true),
    6969    run_thread(boost::bind(&ActionQueue::run, this)),
    70     run_thread_isIdle(true),
    71 #endif
    72     dryrun_flag(false)
     70    run_thread_isIdle(true)
     71#endif
    7372{
    7473  // channels of observable
     
    110109#ifndef HAVE_ACTION_THREAD
    111110  try {
    112     if (!isDryRun(newaction))
    113       newaction->call();
     111    newaction->call();
    114112    lastActionOk = true;
    115113  } catch(ActionFailureException &e) {
     
    177175      LOG(0, "Calling Action " << actionqueue[CurrentAction]->getName() << " ... ");
    178176      try {
    179         if (!isDryRun(actionqueue[CurrentAction]))
    180           actionqueue[CurrentAction]->call();
     177        actionqueue[CurrentAction]->call();
    181178        pushStatus("SUCCESS: Action "+actionqueue[CurrentAction]->getName()+" successful.");
    182179        lastActionOk = true;
     
    383380}
    384381
    385 bool ActionQueue::isDryRun(const Action *_nextaction) const
    386 {
    387   bool status = dryrun_flag;
    388   status &= (_nextaction->getName() != "no-dry-run");
    389   return status;
    390 }
    391382
    392383CONSTRUCT_SINGLETON(ActionQueue)
Note: See TracChangeset for help on using the changeset viewer.