mirror of https://github.com/docker/compose.git
log_opt: change address to syslog-address
Signed-off-by: Joel Hansson <joel.hansson@ecraft.com>
This commit is contained in:
parent
a806d9e77b
commit
61936f6b88
|
@ -62,9 +62,9 @@
|
|||
"type": "object",
|
||||
|
||||
"properties": {
|
||||
"address": {"type": "string"}
|
||||
"syslog-address": {"type": "string"}
|
||||
},
|
||||
"required": ["address"]
|
||||
"required": ["syslog-address"]
|
||||
},
|
||||
|
||||
"mac_address": {"type": "string"},
|
||||
|
|
|
@ -301,7 +301,7 @@ Logging options are key value pairs. An example of `syslog` options:
|
|||
|
||||
log_driver: "syslog"
|
||||
log_opt:
|
||||
address: "tcp://192.168.0.42:123"
|
||||
syslog-address: "tcp://192.168.0.42:123"
|
||||
|
||||
### net
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ class ServiceTest(unittest.TestCase):
|
|||
self.assertEqual(opts['host_config']['Memory'], 1000000000)
|
||||
|
||||
def test_log_opt(self):
|
||||
log_opt = {'address': 'tcp://192.168.0.42:123'}
|
||||
log_opt = {'syslog-address': 'tcp://192.168.0.42:123'}
|
||||
service = Service(name='foo', image='foo', hostname='name', client=self.mock_client, log_driver='syslog', log_opt=log_opt)
|
||||
self.mock_client.containers.return_value = []
|
||||
opts = service._get_container_create_options({'some': 'overrides'}, 1)
|
||||
|
|
Loading…
Reference in New Issue