Bug #349789:script to print error of not vm name
authorPaul Weaver <pweaver@mit.edu>
Sun, 20 Sep 2009 04:59:42 +0000 (00:59 -0400)
committerPaul Weaver <pweaver@mit.edu>
Sun, 20 Sep 2009 04:59:42 +0000 (00:59 -0400)
svn path=/trunk/packages/invirt-remote/; revision=2468

server/usr/sbin/invirt-remote-vminvalid [new file with mode: 0755]

diff --git a/server/usr/sbin/invirt-remote-vminvalid b/server/usr/sbin/invirt-remote-vminvalid
new file mode 100755 (executable)
index 0000000..d158fcb
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+"""
+Returns an error when someone enters an invalid vm name.
+"""
+import sys
+
+
+
+
+def main(args):
+    print 'Machine Name' + args[0] + 'does not exist'
+    return 0
+
+
+if __name__ == '__main__':
+    sys.exit(main(sys.argv[1:]))
+
+# vim:et:sw=4:ts=4