Fixes #2990 and #2518. Avoid AttributeError when awscli is invoked fr… - #2991
Fixes #2990 and #2518. Avoid AttributeError when awscli is invoked fr…#2991emurphy wants to merge 1 commit into
Conversation
|
I don't think simply making it |
|
Making the |
JordonPhillips
left a comment
There was a problem hiding this comment.
A NoneType exception is not a good experience for a user of a cli tool. The fact that sys.stdin itself will be None just means that we should also do something like this for normal stdin.
|
There may be a misunderstanding here. First, one thing to clarify is that I represent a customer of AWS. Our company pays hundreds of thousands of dollars for the privilege to use your services. It is my understanding that you are a paid employee or contractor of AWS. Like other paying customers, we have encountered an error in the aws-cli software. We have helpfully, at our own expense, provided you with a minimal, no-risk solution. Let us analyze the line of code to ensure there is no misunderstanding there… Before merging this PR:
After merging this PR:
This is simple, a trivial fix.
In case 1: In case 2, both Before and After have the same result. binary_stdin is safely set to sys.stdin.buffer. All is well. I could challenge your statement that this fix is not “the best”, but I believe it is irrelevant. In the before case the software breaks; we are not getting from you what we pay for. In the after case your software works, we get what we pay for. There are no drawbacks; there are no excuses for your inaction. I will not comment further. I will not change this PR. Our next step, if this issue is not addressed, will be to mention it to our AWS account manager and open a business support case. Please, as your humble customer, I beg you… merge it now. |
…om python3 daemon.