From 5e20ba5a1354e0a530ca92f1c165322391bff320 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 17 Feb 2012 13:59:16 +0100 Subject: [PATCH] ++logs, +import sys at top level Signed-off-by: Nico Schottelius --- bin/cdist | 4 +++- doc/dev/logs/2012-02-17.keyboardirq | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/bin/cdist b/bin/cdist index 971288fd..5456b134 100755 --- a/bin/cdist +++ b/bin/cdist @@ -200,11 +200,13 @@ def emulator(): sys.exit(1) if __name__ == "__main__": + # Sys is needed for sys.exit() + import sys + try: import logging import os import re - import sys cdistpythonversion = '3.2' if sys.version < cdistpythonversion: diff --git a/doc/dev/logs/2012-02-17.keyboardirq b/doc/dev/logs/2012-02-17.keyboardirq index 93e62fbf..8ce59681 100644 --- a/doc/dev/logs/2012-02-17.keyboardirq +++ b/doc/dev/logs/2012-02-17.keyboardirq @@ -24,3 +24,25 @@ Traceback (most recent call last): """ KeyboardInterrupt ^C% [12:19] brief:cdist% + + +-------------------------------------------------------------------------------- +[13:50] brief:cdist% ./bin/cdist config -vp monitoring02 +INFO: monitoring02: Running global explorers +INFO: monitoring02: Running initial manifest /home/users/nico/privat/firmen/local.ch/vcs/cdist/conf/manifest +INFO: monitoring02: Running object manifests and type explorers +INFO: monitoring02: Running manifest and explorers for __localch_shinken/singleton +^CTraceback (most recent call last): + File "/usr/lib/python3.2/site.py", line 58, in + import traceback + File "/usr/lib/python3.2/traceback.py", line 3, in + import linecache + File "/usr/lib/python3.2/linecache.py", line 10, in + import tokenize + File "/usr/lib/python3.2/tokenize.py", line 49, in + class TokenInfo(collections.namedtuple('TokenInfo', 'type string start end line')): + File "/usr/lib/python3.2/collections.py", line 363, in namedtuple + exec(class_definition, namespace) + File "", line 1, in +KeyboardInterrupt +