Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/prometheus/basic.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/prometheus/basic.py	(revision 38938)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/prometheus/basic.py	(working copy)
@@ -103,12 +103,14 @@
         def _update(self, instance):
             data = instance.get_field_dict()
             self.cli.set_config()
-            if "enable" in data:
-                enable_system = "on" if data["enable"] else "off"
-                self.cli.cmd('prometheus %s' % enable_system,
+            if "enable" in data and data["enable"]:
+                self.cli.cmd('prometheus on',
                                     BlankParser(nonblank_exception=CLICmdError, supplement=True,
                                                 ignore_msg=["The Prometheus client service has been stopped.\n"]))
             else:
+                self.cli.cmd('prometheus off',
+                                    BlankParser(nonblank_exception=CLICmdError, supplement=True,
+                                                ignore_msg=["The Prometheus client service has been stopped.\n"]))
                 if "port" in data:
                     self.cli.cmd('prometheus port %s' % data['port'],
                                         BlankParser(nonblank_exception=CLICmdError, supplement=True))
