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)
committerTom Clegg <tom@curii.com>
Thu, 10 Jun 2021 14:42:30 +0000 (10:42 -0400)
commit59b4ca616c7d0c43da4481c77b4479ee59b94697
tree4f6e0d81c144ba3ef5af24e0b2c3ede2dec93c0d
parent2c843ad3115a94385815dc6925ecee219e3e1a93
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