diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-06-14 15:38:09 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-06-14 15:38:09 +0000 |
commit | 0d7168aaed9cb2d8da86486149b8023328e19370 (patch) | |
tree | 4a5ecdc16581a403e9d70aa09381c9da496f14cd /src/sbin | |
parent | 42c3c94f3d6008ffbf4de25cf17ed81c21996fb0 (diff) | |
download | bcfg2-0d7168aaed9cb2d8da86486149b8023328e19370.tar.gz bcfg2-0d7168aaed9cb2d8da86486149b8023328e19370.tar.bz2 bcfg2-0d7168aaed9cb2d8da86486149b8023328e19370.zip |
Handle trailing newlines in bcfg2-info commands
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3303 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/bcfg2-info | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 4ad4fa3de..3255d827f 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -18,7 +18,7 @@ def printTabular(rows): def getInput(): '''read commands from stdin''' try: - return raw_input('> ').split(" ") + return raw_input('> ').strip().split(" ") except KeyboardInterrupt: return [''] except EOFError: |