33# -*- coding: utf-8 -*-
44
55__author__ = 'Richard J. Sears'
6- VERSION = "0.96 (2021-09-05 )"
6+ VERSION = "0.97 (2021-09-16 )"
77
88# This script is part of my plot management set of tools. This
99# script is used to move plots from one location to another on
@@ -84,20 +84,23 @@ def update_move_local_plot():
8484 old style plot replacement as well as filling_local_drives_first.
8585 """
8686 log .debug ("update_move_local_plot() Started" )
87+ internal_plot_drive_to_use = get_internal_plot_drive_to_use ()[0 ]
88+ if internal_plot_drive_to_use == '/' :
89+ internal_plot_drive_to_use = get_internal_plot_drive_to_use ()
8790 if not chianas .replace_non_pool_plots : # If we are not replacing old plots with new portable plots, run the following code
8891 log .debug ('Replace Plots has NOT been set in config, will build update_move_local_plot script for normal operation.' )
8992 try :
9093 if chianas .current_internal_drive == get_internal_plot_drive_to_use ()[0 ]:
9194 log .debug (f'Currently Configured Internal Plot Drive: { chianas .current_internal_drive } ' )
92- log .debug (f'System Selected Internal Plot Drive: { get_internal_plot_drive_to_use ()[ 0 ] } ' )
95+ log .debug (f'System Selected Internal Plot Drive: { internal_plot_drive_to_use } ' )
9396 log .debug ('Configured and Selected Drives Match!' )
9497 log .debug (f'No changes necessary to Internal Plotting Drive' )
9598 log .debug (
9699 f'Plots left available on configured Internal plotting drive: { get_drive_info ("space_free_plots_by_mountpoint" , chianas .current_internal_drive )} ' )
97100 else :
98- notify ('Internal Plot Drive Updated' , f'Internal Plot Drive Updated: Was: { chianas .current_internal_drive } , Now: { get_internal_plot_drive_to_use ()[ 0 ] } ' )
99- chianas .update_current_internal_drive (get_internal_plot_drive_to_use ()[ 0 ] )
100- log .info (f'Updated Internal Plot Drive, Was: { chianas .current_internal_drive } , Now: { get_internal_plot_drive_to_use ()[ 0 ] } ' )
101+ notify ('Internal Plot Drive Updated' , f'Internal Plot Drive Updated: Was: { chianas .current_internal_drive } , Now: { internal_plot_drive_to_use } ' )
102+ chianas .update_current_internal_drive (internal_plot_drive_to_use )
103+ log .info (f'Updated Internal Plot Drive, Was: { chianas .current_internal_drive } , Now: { internal_plot_drive_to_use } ' )
101104 except TypeError :
102105 log .debug ('No Additional Drives found to be used as internal plot drives!' )
103106 log .debug ('Please add additional drive manually or via auto_drive.py and try again!' )
@@ -109,7 +112,7 @@ def update_move_local_plot():
109112 if (get_all_available_system_space ("free" )[1 ]) > chianas .empty_drives_low_water_mark :
110113 log .debug ('Found Empty Drive Space!' )
111114 log .debug (f'Low Water Mark: { chianas .empty_drives_low_water_mark } and we have { get_all_available_system_space ("free" )[1 ]} available' )
112- drive = get_internal_plot_drive_to_use ()[ 0 ]
115+ drive = internal_plot_drive_to_use
113116 try :
114117 if chianas .current_internal_drive == drive :
115118 log .debug (f'Currently Configured Internal Plot Drive: { chianas .current_internal_drive } ' )
0 commit comments