New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SlapdObject command methods return process data #393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A very small nitpick...
Could you please use an imperative mood in the subject line? It makes the changelog much more readable.
Besides that, you have my ack!
Something like "Make SlapdObject commands return their outputs" would fit better? |
Before the API is set in stone, are we sure it's the right one? Would it be better to return something like Could you also add the return value to the docstrings and documentation? |
ce66857
to
4fce782
Compare
@encukou I did not know about |
'{!r} process failed:\n{!r}\n{!r}'.format( | ||
args, stdout_data, stderr_data | ||
) | ||
'Process failed: {!r}'.format(" ".join(args)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed stdout
and stderr
here as they have been logged a few lines ago, and large outputs as exceptions messages are totally unpracticable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks clean and improved!
You have my ack.
I included this patch on |
A simple refactoring, so the output of commands is usable.