[node-patches] Change in ovirt-node[master]: ui: Name bond to be removed
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Fri Jul 5 14:56:30 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: ui: Name bond to be removed
......................................................................
ui: Name bond to be removed
Now the name of bond to be removed is given in the button to remove the
bond.
Change-Id: I0380d9fffb383239cd184ebfbea007b827ca7413
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/setup/core/network_page.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/18/16518/1
diff --git a/src/ovirt/node/setup/core/network_page.py b/src/ovirt/node/setup/core/network_page.py
index 63f1f4a..4cbbda9 100644
--- a/src/ovirt/node/setup/core/network_page.py
+++ b/src/ovirt/node/setup/core/network_page.py
@@ -155,9 +155,10 @@
"""Describes the UI this plugin requires
This is an ordered list of (path, widget) tuples.
"""
- bond_status = ", ".join(defaults.NicBonding().retrieve()["slaves"]
+ mbond = defaults.NicBonding().retrieve()
+ bond_status = ", ".join(mbond["slaves"]
or [])
- bond_lbl = "Remove bond (%s)" % bond_status \
+ bond_lbl = "Remove %s (%s)" % (mbond["name"], bond_status) \
if bond_status else "Create Bond"
ws = [ui.Header("header[0]", "System Identification"),
--
To view, visit http://gerrit.ovirt.org/16518
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0380d9fffb383239cd184ebfbea007b827ca7413
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list