diff --git a/lib/spack/spack/schema/env.py b/lib/spack/spack/schema/env.py index 01f99cca0b4..f291aca5e53 100644 --- a/lib/spack/spack/schema/env.py +++ b/lib/spack/spack/schema/env.py @@ -111,14 +111,20 @@ "type": "array", "items": {"type": "string"}, }, - "update_method": {"anyOf": [ - {"type": "string", - "pattern": "(symlink|exchange)", - }, - {"type": "array", - "items": {"type": "string", "pattern": "(symlink|exchange)"} - }, - ], + "update_method": { + "anyOf": [ + { + "type": "string", + "pattern": "(symlink|exchange)", + }, + { + "type": "array", + "items": { + "type": "string", + "pattern": "(symlink|exchange)", + }, + }, + ] }, "projections": projections_scheme, },