source: trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-vminvalid @ 2829

Last change on this file since 2829 was 2473, checked in by pweaver, 15 years ago

lp invert bug 349789
Added error codes and prints to stderr

  • Property svn:executable set to *
File size: 267 bytes
Line 
1#!/usr/bin/python
2"""
3Returns an error when someone enters an invalid vm name.
4"""
5import sys
6
7def main(args):
8    print >>sys.stderr, 'Error: no such machine: ' +  args[0]
9    return 1
10
11if __name__ == '__main__':
12    sys.exit(main(sys.argv[1:]))
13
14# vim:et:sw=4:ts=4
Note: See TracBrowser for help on using the repository browser.