Fabian Deutsch has uploaded a new change for review. Change subject: [RFE] Use Management class to pass informations ......................................................................
[RFE] Use Management class to pass informations Change-Id: I441375ea4f7e18b55a7e4d8a7f661e067598de30 Signed-off-by: Fabian Deutsch <[email protected]> --- M src/engine_page.py 1 file changed, 10 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm refs/changes/75/22375/1 diff --git a/src/engine_page.py b/src/engine_page.py index 04018be..961914b 100644 --- a/src/engine_page.py +++ b/src/engine_page.py @@ -19,7 +19,7 @@ # MA 02110-1301, USA. A copy of the GNU General Public License is # also available at http://www.gnu.org/copyleft/gpl.html. from ovirt.node import plugins, valid, ui, utils, app, exceptions -from ovirt.node.config.defaults import NodeConfigFileSection, SSH +from ovirt.node.config.defaults import NodeConfigFileSection, SSH, Management from ovirt.node.plugins import Changeset from ovirt.node import log from . import config @@ -348,11 +348,20 @@ self.logger.info("Starting vdsm-reg service") deployUtil._logExec([constants.EXT_SERVICE, 'vdsm-reg', 'start']) + mgmt = Management() + mgmt.update("oVirt Engine http://%s:%s" % (cfg["server"], + cfg["port"), + ["ovirtmgmt"], # FIXME is this still created? + None) + msgConf = "{engine_name} Configuration Successfully " \ " Updated".format( engine_name=config.engine_name) self.logger.debug(msgConf) else: + mgmt = Management() + mgmt.clear() + msgConf = "{engine_name} Configuration Failed".format( engine_name=config.engine_name) raise RuntimeError(msgConf) -- To view, visit http://gerrit.ovirt.org/22375 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I441375ea4f7e18b55a7e4d8a7f661e067598de30 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node-plugin-vdsm Gerrit-Branch: master Gerrit-Owner: Fabian Deutsch <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
