to_stdout is a function, not a string, so fix the check on
its return in bond2team.
Fixes: d5a1c8ee9e36 ("utils: add bond2team conversion tool")
Signed-off-by: Xin Long <lucien.xin(a)gmail.com>
---
utils/bond2team | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/utils/bond2team b/utils/bond2team
index f8d46ef..1a3d7d6 100755
--- a/utils/bond2team
+++ b/utils/bond2team
@@ -623,9 +623,7 @@ team_ifcfg_write()
team_ifcfg_deliver()
{
pr_dbg "${FUNCNAME} $*"
- if [ ! to_stdout ]; then
- return 0
- fi
+ to_stdout || return 0
if [ -z "${OUTPUT_DIR}" ]; then
show_output_files
--
2.1.0
Show replies by date