diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py index b2dc3ae1..0945167d 100644 --- a/kubespawner/spawner.py +++ b/kubespawner/spawner.py @@ -1250,7 +1250,7 @@ def options_from_form(self, formdata): if not self.profile_list: return formdata # Default to first profile if somehow none is provided - selected_profile = int(formdata.get('profile',[0])[0]) + selected_profile = int(formdata.get('profile', [0])[0]) options = self.profile_list[selected_profile] self.log.debug("Applying KubeSpawner override for profile '%s'", options['display_name']) kubespawner_override = options.get('kubespawner_override', {})