diff options
author | aiordache <anca.iordache@docker.com> | 2020-12-01 12:40:05 +0100 |
---|---|---|
committer | Ulysses Souza <ulysses.souza@docker.com> | 2020-12-02 18:12:39 +0000 |
commit | 8f2dbd9b12914f3049c31723553efeb5ecd276d3 (patch) | |
tree | 0c03828d0e4480ead4b2fdd7820cd22fd15f74c9 /compose/config | |
parent | 5c6c300ba5cfc0226716645d51f400a2d4c19904 (diff) |
Add devices to config hash to trigger container recreate on change
* add unit test
* update path to compose spec schema in Makefile
Signed-off-by: aiordache <anca.iordache@docker.com>
Diffstat (limited to 'compose/config')
-rw-r--r-- | compose/config/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compose/config/config.py b/compose/config/config.py index 1b067e78..2c508273 100644 --- a/compose/config/config.py +++ b/compose/config/config.py @@ -1166,6 +1166,7 @@ def merge_reservations(base, override): md.merge_scalar('cpus') md.merge_scalar('memory') md.merge_sequence('generic_resources', types.GenericResource.parse) + md.merge_field('devices', merge_unique_objects_lists, default=[]) return dict(md) |