From f9831104922ac0a63dfc6ec8460ccabd75054152 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Fri, 11 Jul 2014 16:06:22 -0700 Subject: [PATCH] Remove empty lists from default Service args This will cause terrifying bugs. Signed-off-by: Ben Firshman --- fig/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fig/service.py b/fig/service.py index e18a14036..ff2e99cf2 100644 --- a/fig/service.py +++ b/fig/service.py @@ -40,7 +40,7 @@ class ConfigError(ValueError): class Service(object): - def __init__(self, name, client=None, project='default', links=[], volumes_from=[], **options): + def __init__(self, name, client=None, project='default', links=None, volumes_from=None, **options): if not re.match('^%s+$' % VALID_NAME_CHARS, name): raise ConfigError('Invalid service name "%s" - only %s are allowed' % (name, VALID_NAME_CHARS)) if not re.match('^%s+$' % VALID_NAME_CHARS, project):