fix: Respect --force flag for disk space checks
causing it to always run even with --force flag. This is critical for NFS mounts with automatic capacity extension where reported disk space is lower than actual available space. Use case: Auto-extending NFS storage that shows limited capacity but expands on demand.
This commit is contained in:
@@ -515,9 +515,7 @@ func runRestoreCluster(cmd *cobra.Command, args []string) error {
|
||||
if err := safety.VerifyTools("postgres"); err != nil {
|
||||
return fmt.Errorf("tool verification failed: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Create database instance for pre-checks
|
||||
} // Create database instance for pre-checks
|
||||
db, err := database.New(cfg, log)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create database instance: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user