diff --git a/boxmox/data.py b/boxmox/data.py
index 6872bc1af12a2b37cb7d8d15df03aa924c8ce9f9..dfcce7813a095d6c8d6f6ace39181b5388f27764 100644
--- a/boxmox/data.py
+++ b/boxmox/data.py
@@ -276,7 +276,8 @@ class Output(object):
         '''
         with open(self.fpath, 'rb') as i:
             for line in i:
-                f.write(i)
+                f.write(line)
+
     def copy(self, target_path):
         '''
         Copy output file to target_path