17774: Ignore addition of zero/default values to mounts when frozen.
authorTom Clegg <tom@curii.com>
Thu, 10 Jun 2021 14:42:30 +0000 (10:42 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Wed, 7 Jul 2021 21:29:03 +0000 (17:29 -0400)
commit5400e561b020cc543ec967f5e8bf745ea35c2114
tree21d2ad2a1f8fbb47def6d4813770dc9ae8addf26
parentaa4769f15afe8ae1b5b1388747212e62ebe261c4
17774: Ignore addition of zero/default values to mounts when frozen.

Avoids errors when a client reads the CR and includes the resulting
mounts field (to which controller will have added zero/default values)
in a subsequent update request.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
services/api/app/models/container_request.rb
services/api/test/unit/container_request_test.rb