Changeset 52edb15 in nscp


Ignore:
Timestamp:
03/04/12 10:55:24 (16 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
836e9cd
Parents:
465147a
Message:
  • Fixed issue with python unit script loading usig the wrong default options
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • changelog

    ree52cdd r52edb15  
    88 * Added new dot-net API (Which does not require any strange wrappers) 
    99 * Added brand new sample C# plugin 
     10 * Fixed issue with python unit script loading usig the wrong default options 
    1011 
    11122012-02-21 MickeM 
  • modules/Scheduler/Scheduler.cpp

    ree52cdd r52edb15  
    121121    if (code == NSCAPI::returnIgnored) { 
    122122      NSC_LOG_ERROR_STD(_T("Command was not found: ") + item.command.c_str()); 
     123      if (item.channel.empty()) { 
     124        NSC_LOG_ERROR_STD(_T("No channel specified for ") + item.alias + _T(" mssage will not be sent.")); 
     125        return; 
     126      } 
    123127      //make_submit_from_query(response, item.channel, item.alias); 
    124128      nscapi::functions::create_simple_submit_request(item.channel, item.command, NSCAPI::returnUNKNOWN, _T("Command was not found: ") + item.command, _T(""), response); 
     
    126130      get_core()->submit_message(item.channel, response, result); 
    127131    } else if (nscapi::report::matches(item.report, code)) { 
     132      if (item.channel.empty()) { 
     133        NSC_LOG_ERROR_STD(_T("No channel specified for ") + item.alias + _T(" mssage will not be sent.")); 
     134        return; 
     135      } 
    128136      // @todo: allow renaming of commands here item.alias,  
    129137      // @todo this is broken, fix this (uses the wrong message) 
  • modules/Scheduler/schedules.hpp

    r523576e r52edb15  
    113113        object.set_duration(_T("5m")); 
    114114        object.set_report(_T("all")); 
     115        object.channel = _T("NSCA"); 
    115116      } 
    116117 
  • scripts/python/test_python.py

    r84cdb9b r52edb15  
    7676    conf.set_string(base_path, 'threads', '0') 
    7777 
    78     default_path = '%s/python_test'%base_path 
     78    default_path = '%s/schedules/default'%base_path 
    7979    conf.set_string(default_path, 'channel', 'py_stress_test') 
    8080    conf.set_string(default_path, 'alias', 'stress') 
Note: See TracChangeset for help on using the changeset viewer.