]> granicus.if.org Git - icinga2/commitdiff
Fix indentation in CompatUtility::GetServiceNotification*
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 29 Nov 2013 11:28:17 +0000 (12:28 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 29 Nov 2013 11:28:17 +0000 (12:28 +0100)
Fixes #5242

lib/icinga/compatutility.cpp

index 431183dd699f384248e9f54bd471b8a73b9fe79c..97ef657fc12747d56476d07b694c44718db96ac2 100644 (file)
@@ -461,22 +461,21 @@ Dictionary::Ptr CompatUtility::GetCustomVariableConfig(const DynamicObject::Ptr&
        if (!custom)
                return Dictionary::Ptr();
 
-        ObjectLock olock(custom);
-        String key;
-        Value value;
-        BOOST_FOREACH(boost::tie(key, value), custom) {
-
-                if (key == "notes" ||
+       ObjectLock olock(custom);
+       String key;
+       Value value;
+       BOOST_FOREACH(boost::tie(key, value), custom) {
+               if (key == "notes" ||
                    key == "action_url" ||
                    key == "notes_url" ||
                    key == "icon_image" ||
                    key == "icon_image_alt" ||
                    key == "statusmap_image" ||
                    key == "2d_coords")
-                        continue;
+                       continue;
 
                customvars->Set(key, value);
-        }
+       }
 
        return customvars;
 }
@@ -497,8 +496,8 @@ std::set<User::Ptr> CompatUtility::GetServiceNotificationUsers(const Service::Pt
                BOOST_FOREACH(const UserGroup::Ptr& ug, notification->GetUserGroups()) {
                        std::set<User::Ptr> members = ug->GetMembers();
                        std::copy(members.begin(), members.end(), std::inserter(allUsers, allUsers.begin()));
-                }
-        }
+               }
+       }
 
        return allUsers;
 }
@@ -512,8 +511,8 @@ std::set<UserGroup::Ptr> CompatUtility::GetServiceNotificationUserGroups(const S
 
                BOOST_FOREACH(const UserGroup::Ptr& ug, notification->GetUserGroups()) {
                        usergroups.insert(ug);
-                }
-        }
+               }
+       }
 
        return usergroups;
 }