Changes in src/Actions/ActionQueue.cpp [f3db60:601ef8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionQueue.cpp
rf3db60 r601ef8 63 63 history(new ActionHistory), 64 64 #ifndef HAVE_ACTION_THREAD 65 lastActionOk(true) ,65 lastActionOk(true) 66 66 #else 67 67 CurrentAction(0), 68 68 lastActionOk(true), 69 69 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 73 72 { 74 73 // channels of observable … … 110 109 #ifndef HAVE_ACTION_THREAD 111 110 try { 112 if (!isDryRun(newaction)) 113 newaction->call(); 111 newaction->call(); 114 112 lastActionOk = true; 115 113 } catch(ActionFailureException &e) { … … 177 175 LOG(0, "Calling Action " << actionqueue[CurrentAction]->getName() << " ... "); 178 176 try { 179 if (!isDryRun(actionqueue[CurrentAction])) 180 actionqueue[CurrentAction]->call(); 177 actionqueue[CurrentAction]->call(); 181 178 pushStatus("SUCCESS: Action "+actionqueue[CurrentAction]->getName()+" successful."); 182 179 lastActionOk = true; … … 383 380 } 384 381 385 bool ActionQueue::isDryRun(const Action *_nextaction) const386 {387 bool status = dryrun_flag;388 status &= (_nextaction->getName() != "no-dry-run");389 return status;390 }391 382 392 383 CONSTRUCT_SINGLETON(ActionQueue)
Note:
See TracChangeset
for help on using the changeset viewer.