Kaydet (Commit) f53cdc3a authored tarafından Joffrey F's avatar Joffrey F

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: 's avatarJoffrey F <joffrey@docker.com>
üst 1e2c58de
# 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
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment