-
Notifications
You must be signed in to change notification settings - Fork 49
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
fix(api): fixed a bug when splitting the argument string #45
Conversation
All tests passed in my repo, but you can check again |
Codecov Report
@@ Coverage Diff @@
## main #45 +/- ##
==========================================
- Coverage 80.13% 80.06% -0.07%
==========================================
Files 11 11
Lines 1223 1304 +81
Branches 161 181 +20
==========================================
+ Hits 980 1044 +64
- Misses 184 193 +9
- Partials 59 67 +8
Continue to review full report at Codecov.
|
Related PR: #47 |
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 good to me!
Although I haven't touched Python in a while now, @felixfontein may be a better judge here 🙂
@akimrx Thanks a lot for the fix Initial testing look ok, however I want to do more deep testing with arbitary cmd, query etc.. |
Before discussing on whether this should we merged, we should really discuss the underlying questions in #44 which need to be answered before we can decide whether this PR actually provides a correct fix. |
@akimrx I've rebased your branch. |
I've added #44 (comment) + a changelog fragment to this PR in 3bc446c. |
this is correct thanks ! Co-authored-by: Felix Fontein <[email protected]>
Thanks again for the work here, note: We should update module documentation about strings with '""' for users which define it as variables , no sure how to define it but ros_ip_addr_comment: '"my long string"' -> correct |
It's probably a good idea to simplify this in some ways:
|
Ideally we should be able to use | as this example without escape symbols {{ ros_backup_script_withes }} - work (tested with current code pull/45/head ) I'm not sure how correctly to utilize
|
well the idea is to be close as ros cmd, but both cases are good idea as well ! |
I believe we can submit the code (if there is no other objections ) For dictionary arguments will solve some problems which we have, however will open others, so I suggest to open separate pr for it. |
I agree, let's merge this and then work on improvements in further PRs. |
@akimrx thanks for your contribution! |
@NikolayDachev with #53, you can do
|
SUMMARY
Closes #44
ISSUE TYPE
COMPONENT NAME
routeros_api