From 185975f6acd571ec121e6fc4492bb9e9b993d371 Mon Sep 17 00:00:00 2001 From: wilderrodrigues Date: Thu, 20 Nov 2014 08:04:57 +0100 Subject: [PATCH] Adding [ERROR] tag before error message to ease identification --- systemvm/patches/debian/config/opt/cloud/bin/update_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/update_config.py b/systemvm/patches/debian/config/opt/cloud/bin/update_config.py index b3fb68d1a28..4c017abcfbf 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/update_config.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/update_config.py @@ -29,13 +29,13 @@ logging.basicConfig(filename='/var/log/cloud.log', level=logging.DEBUG, format=' # first commandline argument should be the file to process if (len(sys.argv) != 2): - print "Invalid usage" + print "[ERROR]: Invalid usage" sys.exit(1) # FIXME we should get this location from a configuration class filePath = "/var/cache/cloud/%s" % sys.argv[1] if not (os.path.isfile(filePath) and os.access(filePath, os.R_OK)): - print "You are telling me to process %s, but i can't access it" % filePath + print "[ERROR]: You are telling me to process %s, but i can't access it" % filePath sys.exit(1) # If the command line json file is unprocessed process it