Browse Source

fcn-virt: sauvegarde plus silenciense en absence d'erreur

Guillaume 6 years ago
parent
commit
7046223590
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fcn-virt

+ 1 - 1
fcn-virt

@@ -50,7 +50,7 @@ def is_volume_open(volpath):
 def create_backup_snapshot(vol_str):
   snap_path = Path("{}_snap_{}".format(vol_str, time.strftime("%Y-%m-%d")))
   snapshot_size = '10G'
-  subprocess.call(['lvcreate', '--snapshot', '--size', snapshot_size, '--name', snap_path.name, vol_str], stdout = log_file, stderr = log_file)
+  subprocess.call(['lvcreate', '--snapshot', '--size', snapshot_size, '--name', snap_path.name, vol_str], stdout = subprocess.DEVNULL, stderr = log_file)
   return snap_path
 
 def backup(dom_name, vol_str):