aboutsummaryrefslogtreecommitdiffstats
path: root/snmptrap/mod/trapd_io.py
diff options
context:
space:
mode:
authorLadue, David (dl3158) <dl3158@att.com>2018-04-20 22:54:49 -0400
committerLadue, David (dl3158) <dl3158@att.com>2018-04-21 23:28:48 -0400
commit125dfdd48b506ae6ee9a1a53098d5d137cda8e9b (patch)
tree40161c503d5b080c0e659ebfb896eb4b92f51c37 /snmptrap/mod/trapd_io.py
parent018989a5554f3c6aec77ce7b2851c63005271c2a (diff)
fix runtime startup error
Issue-ID: DCAEGEN2-465 Change-Id: I2db760432f18a37427e60045e7a2bab78f03280e Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'snmptrap/mod/trapd_io.py')
-rw-r--r--snmptrap/mod/trapd_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snmptrap/mod/trapd_io.py b/snmptrap/mod/trapd_io.py
index 351174f..ef67c69 100644
--- a/snmptrap/mod/trapd_io.py
+++ b/snmptrap/mod/trapd_io.py
@@ -199,7 +199,7 @@ def open_file(_loc_file_name):
try:
# open append mode just in case so nothing is lost, but should be
# non-existent file
- _loc_fd = open(_loc_file_name, 'a')
+ _loc_fd = open(_loc_file_name, 'a', 1)
return _loc_fd
except Exception as e:
msg = "Error opening " + _loc_file_name + " append mode - " + str(e)