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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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      /* 
Note: See TracChangeset for help on using the changeset viewer.