Skip zero length files from adding into bundle
Change-Id: Ieb72740af9170c09e442bd2d94e89b0071de6323 Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit is contained in:
@@ -38,7 +38,8 @@ class TarBundler:
|
||||
'Adding file path=%s size=%s md5=%s', path, tar_info.size,
|
||||
checksum.hexdigest())
|
||||
else:
|
||||
LOG.warning('Zero length file added to path=%s', path)
|
||||
LOG.warning('Skipping zero length file, path=%s', path)
|
||||
return
|
||||
|
||||
if islink:
|
||||
tar_info.type = tarfile.SYMTYPE
|
||||
|
Reference in New Issue
Block a user