update/cgcs-patch
Don Penney 8055fcbe51 Protect against generating empty patch
If a user attempts to generate a patch without specifying
any packages, raise an exception to avoid malformed patches.

Additionally, very small files (like a patch with no packages)
appear to be handled differently by the API handler, passing
a cStringIO object for small files and a file object for files
that are about 1K or larger. For robustness, the upload
handler is updated to do a hasattr('fileno') check in order
to protect against an unhandled exception for small files.

Change-Id: Ie1e730a183a27850ba8567f31aea603459b59d45
Closes-Bug: 1803022
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-03-14 17:03:58 -04:00
..
bin Add failure checks to patching init script 2019-03-11 13:28:33 -04:00
centos Add hooks for python wheel generation 2018-10-24 17:13:19 +00:00
cgcs-patch Protect against generating empty patch 2019-03-14 17:03:58 -04:00
LICENSE StarlingX open source release updates 2018-05-31 07:37:12 -07:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:37:12 -07:00
restart-info.html Change compute node to worker node personality 2018-12-13 13:05:05 -05:00