projects
/
invirt/packages/invirt-remote.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0ff901
)
lp invert bug 349789
author
Paul Weaver
<pweaver@mit.edu>
Sun, 20 Sep 2009 05:54:45 +0000
(
01:54
-0400)
committer
Paul Weaver
<pweaver@mit.edu>
Sun, 20 Sep 2009 05:54:45 +0000
(
01:54
-0400)
Added error codes and prints to stderr
svn path=/trunk/packages/invirt-remote/; revision=2473
server/usr/sbin/invirt-remote-vminvalid
patch
|
blob
|
history
diff --git
a/server/usr/sbin/invirt-remote-vminvalid
b/server/usr/sbin/invirt-remote-vminvalid
index
dae29ae
..
e4b3c7b
100755
(executable)
--- a/
server/usr/sbin/invirt-remote-vminvalid
+++ b/
server/usr/sbin/invirt-remote-vminvalid
@@
-5,8
+5,8
@@
Returns an error when someone enters an invalid vm name.
import sys
def main(args):
- print 'Error: no such machine: ' + args[0]
- return 0
+ print >>sys.stderr, 'Error: no such machine: ' + args[0]
+ return 1
if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))