-
Notifications
You must be signed in to change notification settings - Fork 932
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
routeros: /export params depending on version #2435
Conversation
Tested successfully (without @azielke Could you please fix the RuboCop styling warnings? |
Codecov Report
@@ Coverage Diff @@
## master #2435 +/- ##
==========================================
+ Coverage 63.25% 63.28% +0.02%
==========================================
Files 30 30
Lines 1497 1498 +1
==========================================
+ Hits 947 948 +1
Misses 550 550
Continue to review full report at Codecov.
|
vars(:remove_secret) ? '/export hide-sensitive' : '/export show-sensitive' | ||
else | ||
vars(:remove_secret) ? '/export hide-sensitive' : '/export' | ||
end |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Out of curiosity, what happens then no line matches if not @ros_version.nil? and @ros_version >= 7 |
restore previous behaviour when routeros version could not be found (run "/export" without parameters)
installed-version should always be present - but it would indeed throw |
LGTM. Since there's not mention of the newly added ROS 7 support in the changelog yet, it doesn't really seem mandatory to add an entry for this change - but the ROS 7 support should be added. Maybe a maintainer can do that outside of this PR |
Pre-Request Checklist
rubocop --auto-correct
)rake test
)Description
Fix Mikrotik Routeros Backups being empty for routeros versions <7.
Closes issue #2427