Title: [opsview] [11771] If a plugin already exists, just warn, continue to install it.
Revision
11771
Author
pknight
Date
2013-03-13 17:37:14 +0000 (Wed, 13 Mar 2013)

Log Message

If a plugin already exists, just warn, continue to install it.

Modified Paths


Modified: trunk/opsview-core/lib/Opsview/ResultSet/MonitorPacks.pm
===================================================================
--- trunk/opsview-core/lib/Opsview/ResultSet/MonitorPacks.pm	2013-03-13 17:31:50 UTC (rev 11770)
+++ trunk/opsview-core/lib/Opsview/ResultSet/MonitorPacks.pm	2013-03-13 17:37:14 UTC (rev 11771)
@@ -176,11 +176,9 @@
         my $plugins_rs = $schema->resultset( "Plugins" );
         foreach my $p (@plugins) {
             if ( $plugins_rs->find( { name => $p } ) ) {
-                push @errors, "Plugin '$p' already exists";
+                $logger->warn( "Plugin '$p' already exists" );
             }
-            else {
-                push @plugins_to_add_to_db, $p;
-            }
+            push @plugins_to_add_to_db, $p;
         }
     }
     else {

_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to