diff --git a/rpath/amiconfig/instancedata.py b/rpath/amiconfig/instancedata.py index 25afe35..573ffd0 100644 --- a/rpath/amiconfig/instancedata.py +++ b/rpath/amiconfig/instancedata.py @@ -50,8 +50,7 @@ def getUserData(self): user_data_cache = os.getenv("AMICONFIG_LOCAL_USER_DATA") if user_data_cache is not None and user_data_cache[0] == '/': try: - with open(user_data_cache) as f: - return f.read() + return open(user_data_cache).read() except IOError, e: pass