Skip to content
Snippets Groups Projects
Commit 2c4be2da authored by Jakob Berger's avatar Jakob Berger :key2: Committed by jakob
Browse files

bug fix for find_single_object

parent 974baa17
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,7 @@ class Gitlab: ...@@ -199,7 +199,7 @@ class Gitlab:
def find_single_object_by_attributes(self, url: str, attribute_spec: dict, print_progress: bool = False, def find_single_object_by_attributes(self, url: str, attribute_spec: dict, print_progress: bool = False,
cache_behaviour: CacheBehaviour = CacheBehaviour.ignore, cache_behaviour: CacheBehaviour = CacheBehaviour.ignore,
cache_timeout: int = 3600) -> object: cache_timeout: int = 3600) -> object:
result = self._find_single_object(url, self._Filtermethods.object_matches_attributes, attributes, result = self._find_single_object(url, self._Filtermethods.object_matches_attributes, attribute_spec,
print_progress=print_progress, cache_behaviour=cache_behaviour, print_progress=print_progress, cache_behaviour=cache_behaviour,
cache_timeout=cache_timeout) cache_timeout=cache_timeout)
return result[0] if len(result) > 0 else None return result[0] if len(result) > 0 else None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment