From eeefb0b9a1e8bf6113a727be14cb14e0ffac004b Mon Sep 17 00:00:00 2001 From: Christopher Moussa Date: Wed, 7 Aug 2024 09:59:42 -0700 Subject: [PATCH] --parseable: add newline for every row Problem: view-user --parseable does not add a newline character for every row when listing all of the banks that a user belongs to and instead puts them all on the same line. Add a newline character for every row that a user belongs to. --- src/bindings/python/fluxacct/accounting/user_subcommands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bindings/python/fluxacct/accounting/user_subcommands.py b/src/bindings/python/fluxacct/accounting/user_subcommands.py index d5444ae21..ee43e3a0f 100755 --- a/src/bindings/python/fluxacct/accounting/user_subcommands.py +++ b/src/bindings/python/fluxacct/accounting/user_subcommands.py @@ -142,6 +142,7 @@ def get_user_rows(conn, user, headers, rows, parseable, json_fmt): for row in rows: for col in list(row): user_str += str(col).ljust(col_width) + user_str += "\n" return user_str