bakaid commented on a change in pull request #615: MINIFICPP-963 - Zero byte 
(no content) flow files cannot be received …
URL: https://github.com/apache/nifi-minifi-cpp/pull/615#discussion_r319944894
 
 

 ##########
 File path: docker/test/integration/minifi/__init__.py
 ##########
 @@ -211,7 +211,7 @@ def build_image(self, dockerfile, context_files):
 
             with tarfile.open(mode='w', fileobj=docker_context_buffer) as 
docker_context:
                 dockerfile_info = tarfile.TarInfo('Dockerfile')
-                dockerfile_info.size = len(conf_dockerfile_buffer.getvalue())
+                dockerfile_info.size = 
conf_dockerfile_buffer.getbuffer().nbytes
 
 Review comment:
   Is this fixing a bug or just avoiding a copy?
   Also, I think getbuffer only works with Python 3.
   This is a good change, but can we be sure (do we make sure) we will be run 
by Python 3?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to