Skip to content

Commit c1e7895

Browse files
committed
Merge branch 'master' of https://github.com/wamdam/riak-python-client into pevm-wamdam-strfun
2 parents b663639 + 6f36319 commit c1e7895

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

riak/mapreduce.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,9 @@ def to_array(self):
546546
stepdef['module'] = self._function[0]
547547
stepdef['function'] = self._function[1]
548548

549+
elif (self._language == 'erlang' and isinstance(self._function, str)):
550+
stepdef['source'] = self._function
551+
549552
return {self._type: stepdef}
550553

551554

0 commit comments

Comments
 (0)