summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Bahling <sbahling@suse.de>2015-04-19 13:12:28 +0200
committerScott Bahling <sbahling@suse.de>2015-04-19 13:12:28 +0200
commit480b40e658fb9c0edd1fdb0febf2629a06f13215 (patch)
tree0ea9942c2f9038631d8920e131af54c70040141f
parent8fd95bc298868b14f0a5986589caa986cb52bcaf (diff)
downloadobsapi-480b40e658fb9c0edd1fdb0febf2629a06f13215.tar.gz
obsapi-480b40e658fb9c0edd1fdb0febf2629a06f13215.tar.xz
obsapi-480b40e658fb9c0edd1fdb0febf2629a06f13215.zip
Fix __get_auth
-rw-r--r--obsapi/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/obsapi/core.py b/obsapi/core.py
index c9b2b40..174af85 100644
--- a/obsapi/core.py
+++ b/obsapi/core.py
@@ -134,11 +134,12 @@ class ObsApi(object):
self._response = None
def __get_auth(self):
+ conf = {}
if osc_conf:
try:
conf = osc_conf.get_apiurl_api_host_options(self.apiurl)
except:
- conf = {}
+ pass
user = conf.get('user', None)
password = conf.get('pass', None)