Repository navigation
Refactored some code and added module name information to Call classes - #193
Conversation
|
I am not sure why this one test is failing. |
|
I have get the latest master version without my changes and test is still failing there in my local environment. |
|
@lucidd can you please review this PR and let me know if i have to change anything. |
lucidd
left a comment
There was a problem hiding this comment.
except for the type looks good to me. 👍 sorry for the late review.
| } | ||
|
|
||
| /** | ||
| * Return the function na,e |
|
@lucidd Thanks for the review, i have corrected the typo. Sorry for the late reply. I was out for a short vacation. |
| payload.put("fun", functionName); | ||
| Map<String, Object> payload = super.getPayload(); | ||
| arg.ifPresent(arg -> payload.put("arg", arg)); | ||
| kwarg.ifPresent(kwarg -> payload.put("kwarg", kwarg)); |
There was a problem hiding this comment.
@admd and @lucidd: After we merged this patch for releasing it with 0.11.0 we found that this specific change broke things elsewhere as for LocalCall it has always been kwarg (without "s")! We need to verify again here if it is actually correct to turn this into kwargs now for all call types, why it has been kwarg so far and if we maybe need to keep it.
There was a problem hiding this comment.
I remember when implementing this that kwarg and kwargs are not compatible. I'm not exactly sure why salt has 2 different names here. In the worst case we just have to move the kwargs to the specific implementation or have a abstract getter for the name which can be overridden.
There was a problem hiding this comment.
Thanks for the feedback and sorry for the inconvenience caused by my change. Somehow tests gave me wrong impression that my code didn't break anything, I should have been more careful.
I will make changes suggested above through a new PR.
There was a problem hiding this comment.
Ping @admd, would you mind to create that new PR so that we can go on from there? Thank you!
There was a problem hiding this comment.
|
@admd: After merging this patch we had to revert it again as we were unsure about the change of |
#149