Skip to content

Commit

Permalink
address min CPU bug (#289)
Browse files Browse the repository at this point in the history
* address min CPU bug

* more snapshot cases
  • Loading branch information
brendanmcfarland authored Sep 10, 2018
1 parent 65a98f3 commit f7be8ec
Show file tree
Hide file tree
Showing 3 changed files with 4,045 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ module.exports = (options = {}) => {
].Properties.ContainerDefinitions[0].MemoryReservation =
options.reservation.softMemory;

if (!(options.reservation.cpu > 128))
if (!(options.reservation.cpu) || (!(options.reservation.cpu > 128) && (typeof options.reservation.cpu === 'number')))
Resources[prefixed('Task')].Properties.ContainerDefinitions[0].Cpu = 128;

Resources[prefixed('Service')] = {
Expand Down
Loading

0 comments on commit f7be8ec

Please sign in to comment.