From 14b583f6b332877718c82caf2cf3ec0913a53778 Mon Sep 17 00:00:00 2001 From: Paul Weaver Date: Sun, 20 Sep 2009 00:59:42 -0400 Subject: [PATCH] Bug #349789:script to print error of not vm name svn path=/trunk/packages/invirt-remote/; revision=2468 --- server/usr/sbin/invirt-remote-vminvalid | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 server/usr/sbin/invirt-remote-vminvalid diff --git a/server/usr/sbin/invirt-remote-vminvalid b/server/usr/sbin/invirt-remote-vminvalid new file mode 100755 index 0000000..d158fcb --- /dev/null +++ b/server/usr/sbin/invirt-remote-vminvalid @@ -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 -- 1.7.9.5