diff options
| author | Scott Bahling <sbahling@suse.de> | 2015-04-19 13:12:28 +0200 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2015-04-19 13:12:28 +0200 |
| commit | 480b40e658fb9c0edd1fdb0febf2629a06f13215 (patch) | |
| tree | 0ea9942c2f9038631d8920e131af54c70040141f | |
| parent | 8fd95bc298868b14f0a5986589caa986cb52bcaf (diff) | |
| download | obsapi-480b40e658fb9c0edd1fdb0febf2629a06f13215.tar.gz obsapi-480b40e658fb9c0edd1fdb0febf2629a06f13215.tar.xz obsapi-480b40e658fb9c0edd1fdb0febf2629a06f13215.zip | |
Fix __get_auth
| -rw-r--r-- | obsapi/core.py | 3 |
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) |
