From 2271b2c74dc998ef05086984b04122eb610fca13 Mon Sep 17 00:00:00 2001
From: Sebastian Lobinger <sebastian.lobinger@zib.de>
Date: Fri, 18 Aug 2017 09:47:00 +0200
Subject: [PATCH] implement getInstance class method to pass test_get_instance
 fix #5

---
 config_provider.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/config_provider.py b/config_provider.py
index 1399ab3..10df542 100644
--- a/config_provider.py
+++ b/config_provider.py
@@ -1,9 +1,16 @@
 class ConfigProvider:
 
+  _instance = None
+
+  @classmethod
+  def getInstance(cls):
+    return ConfigProvider._instance
+
   def __init__(self, load_function):
     self._conf_dict = load_function['function'](
       *load_function.get('args'), **load_function.get('kwargs'))
     self._load_function = load_function
+    ConfigProvider._instance = self
 
   @property
   def dict(self):
-- 
GitLab