Uncomment FTP upload code
[infoex-autowx.git] / infoex-autowx.py
index a4e50a931f2fc9324174a3d9875441b6889833d4..4f6c9dc4e3b763bf8075add06f287af6c501bc3c 100755 (executable)
@@ -224,11 +224,11 @@ with open(infoex['csv_filename'], 'w') as f:
     writer.writerow(final_data)
     f.close()
 
-#with open(infoex['csv_filename'], 'rb') as f:
-#    log.debug("uploading FTP file '%s'" % (infoex['host']))
-#    ftp = FTP(infoex['host'], infoex['uuid'], infoex['api_key'])
-#    ftp.storlines('STOR ' + infoex['csv_filename'], f)
-#    ftp.close()
-#    f.close()
+with open(infoex['csv_filename'], 'rb') as f:
+    log.debug("uploading FTP file '%s'" % (infoex['host']))
+    ftp = FTP(infoex['host'], infoex['uuid'], infoex['api_key'])
+    ftp.storlines('STOR ' + infoex['csv_filename'], f)
+    ftp.close()
+    f.close()
 
 log.debug('DONE')