Skip to content

Commit

Permalink
* Improve uda checking conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
lyz-code committed Mar 6, 2018
1 parent 7805380 commit f055fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasklib/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def _set_task_attrs(self):
available_task_attrs = self.TASK_STANDARD_ATTRS
udas = set()
for index in self.config:
if 'uda' in index:
if index.startswith('uda.'):
udas.add(re.sub(r'.*uda\.(.*?)\..*', r'\1', index))
available_task_attrs.extend(udas)
self.available_task_attrs = tuple(available_task_attrs)

0 comments on commit f055fce

Please sign in to comment.