projects
/
invirt/packages/invirt-remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent the janitor from trying to clean up nonexistent LVs.
[invirt/packages/invirt-remote.git]
/
server
/
usr
/
sbin
/
invirt-remote-vminvalid
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:]))