forked from Azure/azure-init
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swapping get_mount_devices from while loop to filter_map (Azure#103)
* Swapping get_mount_devices from while loop to filter_map The while loop for get_mount_devices was stuck in a loop where it was re-fetching the list of mounted devices every time if anything returned true and then would repeatedly find the same device. This should eliminate the issue and allow it to only add the device once. * Adding unit test for getting mount media * Write unit tests and mount_media with fstab instead of block_utils Co-authored-by: Anh Vo <anhvo@microsoft.com>
- Loading branch information
1 parent
3fd4094
commit 8c3e33b
Showing
3 changed files
with
100 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters