Update service config_dict computation to include volumes_from mode

Ensure config_hash is updated when volumes_from mode is changed, and
service is recreated on next up as a result.

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2015-11-09 13:07:26 -08:00
commit a1e140f5a3
2 changed files with 4 additions and 2 deletions

View file

@ -410,7 +410,7 @@ class ServiceTest(unittest.TestCase):
'options': {'image': 'example.com/foo'},
'links': [('one', 'one')],
'net': 'other',
'volumes_from': ['two'],
'volumes_from': [('two', 'rw')],
}
self.assertEqual(config_dict, expected)