From 98e5428b839089f11b1dc18c07c03d3a99091dda Mon Sep 17 00:00:00 2001 From: Arthur Navi Date: Tue, 5 Nov 2024 23:55:04 +0000 Subject: [PATCH] I think this is a better example I _think_ that maybe if you have a tuple of 1, it gets "unwrapped" in some way to be just a singleton - or at least I was encountering a bug along those lines... (('/mnt/tmp', 'mount /mnt/tmp'))[0] == '/' ^ this is where my big was occuring, I think It also could've been an issue with the printing - no idea. Changing from a tuple to a list seems to be better --- remount_checker/example_mount_points.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/remount_checker/example_mount_points.py b/remount_checker/example_mount_points.py index 8744c46..3c9f07c 100644 --- a/remount_checker/example_mount_points.py +++ b/remount_checker/example_mount_points.py @@ -1,4 +1,4 @@ -mount_points = ( - # ('/mnt/external', 'mount /mnt/external') - # ('/mnt/network_drive', 'cd /mnt; mount network_drive') -) +mount_points = [ + # ('/mnt/external', 'mount /mnt/external'), + # ('/mnt/network_drive', 'cd /mnt; mount network_drive'), +]