rancher / elemental-toolkit

:snowflake: The toolkit to build, ship and maintain cloud-init driven Linux derivatives based on container images
https://rancher.github.io/elemental-toolkit/docs/
Apache License 2.0
291 stars 53 forks source link

Remove empty mount paths #2036

Closed frelon closed 7 months ago

frelon commented 7 months ago

When running mount command with a layout file that contains spaces, those spaces will be converted to empty paths.

This commit removes those paths in the Sanitize method for the MountSpec.

Fixes #2035

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 72.36%. Comparing base (d993113) to head (9cbe4bc). Report is 126 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2036 +/- ## ========================================== + Coverage 72.33% 72.36% +0.02% ========================================== Files 76 76 Lines 9013 9021 +8 ========================================== + Hits 6520 6528 +8 Misses 1949 1949 Partials 544 544 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.