From 1bc942b1426e36866f58043913750d0f0e75c453 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 13 Jan 2015 19:26:56 +0100 Subject: [PATCH] cli: fix client bond option count Looks more like 5, not 7, unless a particular mode is selected: There are 7 optional arguments for 'bond' connection type. Do you want to provide them? (yes/no) [yes] Bonding mode [balance-rr]: Bonding monitoring mode (miimon/arp) [miimon]: Bonding miimon [100]: Bonding downdelay [0]: Bonding updelay [0]: --- clients/cli/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 5de9cc9d13..3f7fc5cbca 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -3501,7 +3501,7 @@ do_questionnaire_bond (char **mode, char **primary, char **miimon, GError *error = NULL; /* Ask for optional 'bond' arguments. */ - if (!want_provide_opt_args (_("bond"), 7)) + if (!want_provide_opt_args (_("bond"), 5)) return; if (!*mode) {