浏览代码

Remove empty lists from default Service args

This will cause terrifying bugs.

Signed-off-by: Ben Firshman <[email protected]>
Ben Firshman 11 年之前
父节点
当前提交
f983110492
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fig/service.py

+ 1 - 1
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):