summaryrefslogtreecommitdiff
path: root/gitlab/base.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2017-12-16 14:06:03 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2017-12-16 14:07:12 +0100
commit6f36f707cfaafc6e565aad14346d01d637239f79 (patch)
tree2523a22cb1d4d3482cf3d7a9f27af5887b7f1418 /gitlab/base.py
parente08d3fd84336c33cf7860e130d2e95f7127dc88d (diff)
downloadgitlab-6f36f707cfaafc6e565aad14346d01d637239f79.tar.gz
submanagers: allow having undefined parameters
This might happen in CLI context, where recursion to discover parent attributes is not required (URL gets hardcoded) Fix should fix the CLI CI.
Diffstat (limited to 'gitlab/base.py')
-rw-r--r--gitlab/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/base.py b/gitlab/base.py
index ec5f698..fd79c53 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -764,7 +764,7 @@ class RESTManager(object):
if self._parent is None or not hasattr(self, '_from_parent_attrs'):
return path
- data = {self_attr: getattr(self._parent, parent_attr)
+ data = {self_attr: getattr(self._parent, parent_attr, None)
for self_attr, parent_attr in self._from_parent_attrs.items()}
self._parent_attrs = data
return path % data