Title: [opsview] [12950] Only update the help text on an install of a plugin.
Revision
12950
Author
tvoon
Date
2013-07-16 12:31:27 +0100 (Tue, 16 Jul 2013)

Log Message

Only update the help text on an install of a plugin. Keeping previous is fine
when updating the plugin

Modified Paths

Modified: trunk/opsview-core/lib/Opsview/ResultSet/MonitorPacks.pm
===================================================================
--- trunk/opsview-core/lib/Opsview/ResultSet/MonitorPacks.pm	2013-07-16 10:52:50 UTC (rev 12949)
+++ trunk/opsview-core/lib/Opsview/ResultSet/MonitorPacks.pm	2013-07-16 11:31:27 UTC (rev 12950)
@@ -101,10 +101,10 @@
             next;
         };
 
-        # Just use a dummy message for now. The next populatedb.pl will get the right help
-        $p->help( "Installed via opspack" );
+        if ( !$p->in_storage ) {
 
-        if ( !$p->in_storage ) {
+            # Just use a dummy message for now. The next populatedb.pl will get the right help
+            $p->help( "Installed via opspack" );
             $p->insert;
         }
         else {

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

Reply via email to