]> git.infradead.org Git - users/dhowells/kafs-utils.git/commit
Fix up output and error displaying in commands
authorDavid Howells <dhowells@redhat.com>
Mon, 14 Apr 2014 12:42:41 +0000 (13:42 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 14 Apr 2014 12:42:41 +0000 (13:42 +0100)
commita72ea07e75977be94741937973441a73245d1192
treeb75299a58963748a342d544c0d7dd1692bec8014
parent3e1358e9274da95deeee9b6a75d0197d4cbb12f0
Fix up output and error displaying in commands

Fix up output and error displaying in commands so far implemented.  Replace
usage of print() with output() and outputf() for normal operation and error()
for error display.  debug() is replaced with verbose() which is contingent on
the -verbose switch.

Also add error handling to a number of commands.

Signed-off-by: David Howells <dhowells@redhat.com>
35 files changed:
suite/argparse.py
suite/commands/bos/addhost.py
suite/commands/bos/adduser.py
suite/commands/bos/create.py
suite/commands/bos/delete.py
suite/commands/bos/getdate.py
suite/commands/bos/getrestart.py
suite/commands/bos/getrestricted.py
suite/commands/bos/listhosts.py
suite/commands/bos/listusers.py
suite/commands/bos/removehost.py
suite/commands/bos/removeuser.py
suite/commands/bos/setcellname.py
suite/commands/bos/shutdown.py
suite/commands/bos/start.py
suite/commands/bos/startup.py
suite/commands/bos/status.py
suite/commands/bos/stop.py
suite/commands/vos/examine.py
suite/commands/vos/listaddrs.py
suite/commands/vos/listpart.py
suite/commands/vos/listvldb.py
suite/commands/vos/listvol.py
suite/commands/vos/partinfo.py
suite/commands/vos/status.py
suite/lib/bosserver.py
suite/lib/cell.py
suite/lib/debug.py [deleted file]
suite/lib/fileserver.py
suite/lib/output.py [new file with mode: 0644]
suite/lib/server.py
suite/lib/vlserver.py
suite/lib/voldisplay.py
suite/lib/volserver.py
suite/main.py