From 38a47ecef0518ba5711df78740cdff064a5bb870 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 28 Aug 2013 11:19:04 -0500 Subject: [PATCH] Don't return inside __init__ --- teuthology/config.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/teuthology/config.py b/teuthology/config.py index 45b0b92ad..24e466f5b 100644 --- a/teuthology/config.py +++ b/teuthology/config.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python import os import yaml import logging @@ -15,12 +14,11 @@ class _Config(object): ~/.teuthology.yaml and nothing else. """ def __init__(self): - if not os.path.exists(CONF_FILE): + if os.path.exists(CONF_FILE): + self.__conf = yaml.safe_load(file(CONF_FILE)) + else: log.debug("%s not found", CONF_FILE) self.__conf = {} - return - - self.__conf = yaml.safe_load(file(CONF_FILE)) # This property declaration exists mainly as an example; it is not # necessary unless you want to, say, define a set method and/or a -- 2.47.3