Skip to content

Commit 6f36f70

Browse files
author
Gauvain Pocentek
committed
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.
1 parent e08d3fd commit 6f36f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def _compute_path(self, path=None):
764764
if self._parent is None or not hasattr(self, '_from_parent_attrs'):
765765
return path
766766

767-
data = {self_attr: getattr(self._parent, parent_attr)
767+
data = {self_attr: getattr(self._parent, parent_attr, None)
768768
for self_attr, parent_attr in self._from_parent_attrs.items()}
769769
self._parent_attrs = data
770770
return path % data

0 commit comments

Comments
 (0)