summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-07-15 11:48:34 -0400
committerScott Moser <smoser@ubuntu.com>2010-07-15 11:48:34 -0400
commited3f86d5e459b9a76f73630e8072578cfe9d8fc3 (patch)
tree52aaecc4995e554ba5a0f782a256c2fe294731a7
parent9df86b07688b73bc3179a6b6bb596a1eed069333 (diff)
downloadvyos-cloud-init-ed3f86d5e459b9a76f73630e8072578cfe9d8fc3.tar.gz
vyos-cloud-init-ed3f86d5e459b9a76f73630e8072578cfe9d8fc3.zip
use debug rather than error on cloud-init-run-module "already ran"
-rwxr-xr-xcloud-init-run-module.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloud-init-run-module.py b/cloud-init-run-module.py
index 1877ab2c..3e62f007 100755
--- a/cloud-init-run-module.py
+++ b/cloud-init-run-module.py
@@ -44,7 +44,9 @@ def main():
fail("Failed to get instance data\n\t%s" % traceback.format_exc(),log)
if cloud.sem_has_run(semname,freq):
- err("%s already ran %s" % (semname,freq),log)
+ msg="%s already ran %s" % (semname,freq)
+ sys.stderr.write("%\n" % msg)
+ log.debug(msg)
sys.exit(0)
try: