]> granicus.if.org Git - icinga2/commitdiff
Build fix
authorGunnar Beutner <gunnar@beutner.name>
Thu, 20 Nov 2014 21:53:59 +0000 (22:53 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 20 Nov 2014 21:54:29 +0000 (22:54 +0100)
refs #7699

lib/config/vmops.hpp

index 3db6b6532da4401608fab538d3bae89fec4bfa25..bb53217b02c27377858267454a259ad030908f7d 100644 (file)
@@ -33,6 +33,7 @@
 #include "base/scriptvariable.hpp"
 #include "base/configerror.hpp"
 #include "base/convert.hpp"
+#include "base/objectlock.hpp"
 #include <boost/foreach.hpp>
 #include <map>
 #include <vector>
@@ -171,11 +172,9 @@ public:
                item->SetAbstract(abstract);
                item->SetScope(context);
                item->SetZone(zone);
+               item->SetFilter(filter);
                item->Compile()->Register();
 
-               if (filter)
-                       ObjectRule::AddRule(type, name, filter, debugInfo, context);
-
                return Empty;
        }