Douglas Schilling Landgraf has uploaded a new change for review. Change subject: engine_page: Replace oVirt Engine str with constant ......................................................................
engine_page: Replace oVirt Engine str with constant Use constant for product name instead of static value. Change-Id: I989fec8c90c27bad4e8a3dca810ab492253929dd Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1167246 Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com> --- M src/engine_page.py 1 file changed, 9 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm refs/changes/22/36222/1 diff --git a/src/engine_page.py b/src/engine_page.py index fdee9ac..f9c9fdb 100644 --- a/src/engine_page.py +++ b/src/engine_page.py @@ -114,7 +114,11 @@ proto = "https" else: proto = "http" - engine_data = '"oVirt Engine %s://%s"' % (proto, ":".join(server_url)) + engine_data = '"%s %s://%s"' % ( + config.engine_name, + proto, + ":".join(server_url) + ) ag = augeas.Augeas() ag.set("/augeas/save/copy_if_rename_fails", "") @@ -467,11 +471,13 @@ class CannotFindEngine(utils.Transaction.Element): - title = "Trying to connect with oVirt Engine.." + title = "Trying to connect with {engine_name}..".format( + engine_name=config.engine_name + ) def commit(self): raise RuntimeError( - "Cannot connect with oVirt Engine!" + "Cannot connect with management system!" ) -- To view, visit http://gerrit.ovirt.org/36222 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I989fec8c90c27bad4e8a3dca810ab492253929dd Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node-plugin-vdsm Gerrit-Branch: master Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches