Changeset c630d09 in nscp


Ignore:
Timestamp:
05/13/12 23:13:25 (13 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
1cc8566
Parents:
df109f9
Message:
  • Take 2 on fixing the empty command parsing.
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • changelog

    rd6c3131 rc630d09  
    44 * Fixa dependonservice LanManWorkStation (old win) 
    55 * Fix RtlStringFromGUID problem on NT4 
     6 
     72012-05-13 MickeM 
     8 * Take 2 on fixing the empty command parsing. 
    69 
    7102012-05-07 MickeM 
  • modules/CheckExternalScripts/commands.hpp

    r67c6d04 rc630d09  
    120120    static void read_object(boost::shared_ptr<nscapi::settings_proxy> proxy, object_type &object) { 
    121121      object.set_command(object.value); 
     122      std::wstring alias; 
    122123      //if (object.alias == _T("default")) 
    123124      // Pupulate default template! 
     
    144145        _T("COMMAND"), _T("Command to execute")) 
    145146 
    146         (_T("alias"), sh::wstring_key(&object.alias), 
    147         _T("ALIAS"), _T("The alias (service name) to report to server")) 
     147        (_T("alias"), sh::wstring_key(&alias), 
     148        _T("ALIAS"), _T("The alias (service name) to report to server"), true) 
    148149 
    149150        (_T("parent"), nscapi::settings_helper::wstring_key(&object.parent, _T("default")), 
     
    166167      settings.register_all(); 
    167168      settings.notify(); 
     169      if (!alias.empty()) 
     170        object.alias = alias; 
    168171 
    169172      /* 
  • modules/Scheduler/schedules.hpp

    rdf109f9 rc630d09  
    117117        object.channel = _T("NSCA"); 
    118118      } 
     119      std::wstring alias; 
    119120 
    120121      nscapi::settings_helper::settings_registry settings(proxy); 
     
    129130        _T("SCHEDULE COMMAND"), _T("Command to execute"), object.alias == _T("default")) 
    130131 
    131         (_T("alias"), sh::wstring_key(&object.alias), 
     132        (_T("alias"), sh::wstring_key(&alias), 
    132133        _T("SCHEDULE ALIAS"), _T("The alias (service name) to report to server"), object.alias == _T("default")) 
    133134 
     
    173174      settings.notify(); 
    174175 
     176      if (!alias.empty()) 
     177        object.alias = alias; 
    175178      /* 
    176179      BOOST_FOREACH(const object_type::options_type::value_type &kvp, options) { 
  • version.hpp

    rdf109f9 rc630d09  
    11#ifndef VERSION_HPP 
    22#define VERSION_HPP 
    3 #define PRODUCTVER     0,4,0,172 
    4 #define STRPRODUCTVER  "0,4,0,172" 
    5 #define STRPRODUCTDATE "2012-05-08" 
     3#define PRODUCTVER     0,4,0,173 
     4#define STRPRODUCTVER  "0,4,0,173" 
     5#define STRPRODUCTDATE "2012-05-13" 
    66#endif // VERSION_HPP 
  • version.txt

    rdf109f9 rc630d09  
    11version=0.4.0 
    2 build=172 
    3 date=2012-05-08 
     2build=173 
     3date=2012-05-13 
Note: See TracChangeset for help on using the changeset viewer.