From f2cfc58e28ba7b7cea3f93790ce16957a12d02cd Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 5 Jul 2018 16:37:16 +0200 Subject: [PATCH] default values: None -> [] --- kubespawner/objects.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kubespawner/objects.py b/kubespawner/objects.py index 60fd6107c..a3746bc2d 100644 --- a/kubespawner/objects.py +++ b/kubespawner/objects.py @@ -58,13 +58,13 @@ def make_pod( extra_pod_config=None, extra_containers=None, scheduler_name=None, - tolerations=None, - node_affinity_preferred=None, - node_affinity_required=None, - pod_affinity_preferred=None, - pod_affinity_required=None, - pod_anti_affinity_preferred=None, - pod_anti_affinity_required=None, + tolerations=[], + node_affinity_preferred=[], + node_affinity_required=[], + pod_affinity_preferred=[], + pod_affinity_required=[], + pod_anti_affinity_preferred=[], + pod_anti_affinity_required=[], ): """ Make a k8s pod specification for running a user notebook.