canonical / notebook-operators

Charmed Jupyter Notebooks
Apache License 2.0
5 stars 9 forks source link

Fix spawner_ui_config.yaml to use correct null values for configurations #361

Closed ca-scribner closed 4 months ago

ca-scribner commented 4 months ago

Previously, the spawner_ui_config.yaml was rendered with empty strings and lists being rendered as null values in the configuration file. For example if the GPU vendors list was empty and the default vendor was "", the config file would have (shown truncated):

  gpus:
    value:
      vendor: 

      vendors: 

whereas jupyter web app expected:

  gpus:
    value:
      vendor: ""

      vendors: []

This commit updates the template to ensure we always output the correct empty values.

Closes #360