Code

Various plugins: Use the IS_TRUE and IS_FALSE macros everywhere.
[collectd.git] / src / libvirt.c
index 6f9e5f126d497b44ef2c42e2cd437cae3f5a1b49..bcbf0e6ad51a5527df6b9a74a6a7322bd916881c 100644 (file)
@@ -187,9 +187,7 @@ lv_config (const char *key, const char *value)
     }
 
     if (strcasecmp (key, "IgnoreSelected") == 0) {
-        if (strcasecmp (value, "True") == 0 ||
-            strcasecmp (value, "Yes") == 0 ||
-            strcasecmp (value, "On") == 0)
+        if (IS_TRUE (value))
         {
             ignorelist_set_invert (il_domains, 0);
             ignorelist_set_invert (il_block_devices, 0);