Rename LogDriver to DriverConfig for genericity

The class can be used for both log driver and volume driver specs. Use
a name that reflects this.

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-08-22 16:11:48 -07:00
parent 1e2c58de9e
commit f53cdc3a07
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# flake8: noqa
from .containers import LogConfig, Ulimit
from .services import (
ContainerSpec, LogDriver, Mount, Resources, RestartPolicy, TaskTemplate,
ContainerSpec, DriverConfig, Mount, Resources, RestartPolicy, TaskTemplate,
UpdateConfig
)
from .swarm import SwarmSpec, SwarmExternalCA

View File

@ -169,7 +169,7 @@ class RestartPolicy(dict):
self['Window'] = window
class LogDriver(dict):
class DriverConfig(dict):
def __init__(self, name, options=None):
self['Name'] = name
if options: