]> granicus.if.org Git - icinga2/commitdiff
DB IDO: Remove check_command_args column
authorMichael Friedrich <michael.friedrich@icinga.com>
Thu, 21 Dec 2017 08:41:49 +0000 (09:41 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 15 Jan 2018 12:39:34 +0000 (13:39 +0100)
The populated value is not entirely correct, and pulls in lots
of compat code.

lib/db_ido/hostdbobject.cpp
lib/db_ido/servicedbobject.cpp

index b77aeb4c9d410d6515f687e6537659b48834b8fb..e5ba614f4cc53aea43080e382e77d06081ccd125 100644 (file)
@@ -62,7 +62,6 @@ Dictionary::Ptr HostDbObject::GetConfigFields() const
        fields->Set("address6", host->GetAddress6());
 
        fields->Set("check_command_object_id", host->GetCheckCommand());
-       fields->Set("check_command_args", CompatUtility::GetCheckableCommandArgs(host));
        fields->Set("eventhandler_command_object_id", host->GetEventCommand());
        fields->Set("eventhandler_command_args", Empty);
        fields->Set("notification_timeperiod_object_id", Empty);
index e8d3cc2de740b0e2b2657fa1cbb3c480865d5f3b..5012465d9cbab643f707673a77a2e929d512d64d 100644 (file)
@@ -57,7 +57,6 @@ Dictionary::Ptr ServiceDbObject::GetConfigFields() const
        fields->Set("host_object_id", host);
        fields->Set("display_name", service->GetDisplayName());
        fields->Set("check_command_object_id", service->GetCheckCommand());
-       fields->Set("check_command_args", CompatUtility::GetCheckableCommandArgs(service));
        fields->Set("eventhandler_command_object_id", service->GetEventCommand());
        fields->Set("eventhandler_command_args", Empty);
        fields->Set("notification_timeperiod_object_id", Empty);