diff options
| author | Scott Bahling <sbahling@suse.com> | 2020-02-13 12:23:57 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.com> | 2020-02-13 12:23:57 +0100 |
| commit | b2e96e97ccbe3b6b670a8366dc1ff5ed775deddf (patch) | |
| tree | c494c9ac43a29a9d346de0f53c00236a0601ec88 /obsapi/sourceapi.py | |
| parent | 18b01d7861312b85bab1421cec42000d20106b26 (diff) | |
| download | obsapi-b2e96e97ccbe3b6b670a8366dc1ff5ed775deddf.tar.gz obsapi-b2e96e97ccbe3b6b670a8366dc1ff5ed775deddf.tar.xz obsapi-b2e96e97ccbe3b6b670a8366dc1ff5ed775deddf.zip | |
Cleanup sourceapi
Diffstat (limited to 'obsapi/sourceapi.py')
| -rw-r--r-- | obsapi/sourceapi.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/obsapi/sourceapi.py b/obsapi/sourceapi.py index 890ac52..1d4ba56 100644 --- a/obsapi/sourceapi.py +++ b/obsapi/sourceapi.py @@ -18,7 +18,7 @@ class ObsSourceApi(ObsHttpApi): def get(self, prj=None, pkg=None, filename=None, binary_get=None, **kwargs): if filename: - binary_get=True + binary_get = True return self.__get(prj, pkg, filename, binary_get=binary_get, **kwargs) def put(self, prj, pkg=None, filename=None, data=None, **kwargs): @@ -30,12 +30,10 @@ class ObsSourceApi(ObsHttpApi): def get_meta(self, prj, pkg=''): return self.__get(prj, pkg, '_meta') - def put_meta(self, prj, xml=None, pkg=None): - if xml is None: - return None - return self.__put(prj, pkg, '_meta', data=xml) + def put_meta(self, prj, pkg=None, meta=None): + return self.__put(prj, pkg, '_meta', data=meta) - def get_attribute(self, prj, pkg='', binary='', attribute=''): + def get_attribute(self, prj, pkg=None, binary=None, attribute=None): return self.__get(prj, pkg, binary, '_attribute', attribute) def get_config(self, prj): |
