]> granicus.if.org Git - icinga2/commitdiff
Fix: Check_source in ClassicUI is N/A
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 17 Oct 2013 10:08:08 +0000 (12:08 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 17 Oct 2013 10:08:08 +0000 (12:08 +0200)
Fixes #4893

lib/icinga/service-check.cpp

index 476d0879b56ce9be88e69f84ecfa2eb664b3f598..df5c9eec17d1e612483a2a70b62f052b01e5adbc 100644 (file)
@@ -475,7 +475,9 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr, const String& author
        if (!cr->Contains("execution_end"))
                cr->Set("execution_end", now);
 
-       if (!cr->Contains("check_source"))
+       String check_source = cr->Get("check_source");
+
+       if (check_source.IsEmpty())
                cr->Set("check_source", authority);
 
        bool reachable = IsReachable();