From b5b8423df73bfe4b885f6ab4f9bcf74809bab523 Mon Sep 17 00:00:00 2001 From: Barak Hoffer Date: Thu, 1 Oct 2015 15:32:28 +0300 Subject: [PATCH] minor bug fix --- chaos_monkey/monkeyfs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chaos_monkey/monkeyfs.py b/chaos_monkey/monkeyfs.py index 4b5c07af4..13ab3e92e 100644 --- a/chaos_monkey/monkeyfs.py +++ b/chaos_monkey/monkeyfs.py @@ -5,6 +5,8 @@ __author__ = 'hoffer' MONKEYFS_PREFIX = 'monkeyfs://' +open_orig = open + class VirtualFile(BytesIO): _vfs = {} #virtual File-System @@ -50,4 +52,4 @@ def open(name, mode='r', buffering=-1): if name.startswith(MONKEYFS_PREFIX): return VirtualFile(name, mode, buffering) else: - return open(name, mode=mode, buffering=buffering) + return open_orig(name, mode=mode, buffering=buffering)