Skip to content

Added limit argument to ansible_parallel.py#4

Open
hugo-azevedo wants to merge 1 commit intomeltygroup:mainfrom
hugo-azevedo:add-argument-for-buffer-limit
Open

Added limit argument to ansible_parallel.py#4
hugo-azevedo wants to merge 1 commit intomeltygroup:mainfrom
hugo-azevedo:add-argument-for-buffer-limit

Conversation

@hugo-azevedo
Copy link

Some ansible tasks may produce stderr or stdout messages that exceed the default stream buffer limit. When this happens a string message is appended to the playbook results array, which causes the final return sum(results) to bomb out with a TypeError: unsupported operand type(s) for +: 'int' and 'ValueError' error.

This change allows a user to specify a new buffer limit as a cli argument to accommodate for such scenarios.

Some ansible tasks may produce stderr or stdout messages that exceed the default stream buffer limit. When this happens a string message is appended to the playbook results array, which causes the final `return sum(results)` to bomb out with a `TypeError: unsupported operand type(s) for +: 'int' and 'ValueError'` error.

This change allows a user to specify a new buffer limit as a cli argument to accommodate for such scenarios.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant