hadong has uploaded a new change for review. Change subject: disable transaction of bond if unset bond.name and bond.slaves.selected ......................................................................
disable transaction of bond if unset bond.name and bond.slaves.selected Change-Id: I6956459ee320b9c4431f5c0fec47c10c55cd8c46 Signed-off-by: hadong <[email protected]> --- M src/ovirt/node/setup/core/network_page.py 1 file changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/10/27110/1 diff --git a/src/ovirt/node/setup/core/network_page.py b/src/ovirt/node/setup/core/network_page.py index 9bb11d0..1b0ec7c 100644 --- a/src/ovirt/node/setup/core/network_page.py +++ b/src/ovirt/node/setup/core/network_page.py @@ -380,9 +380,11 @@ "bond.slaves.selected", "bond.options"]) self.logger.debug("args: %s" % args) - mb.update(*args) - txs += mb.transaction() - txs += mnet.transaction() + if effective_model["bond.name"] and \ + effective_model["bond.slaves.selected"]: + mb.update(*args) + txs += mb.transaction() + txs += mnet.transaction() self._bond_dialog.close() progress_dialog = ui.TransactionProgressDialog("dialog.txs", txs, self) -- To view, visit http://gerrit.ovirt.org/27110 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6956459ee320b9c4431f5c0fec47c10c55cd8c46 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: hadong <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
