From 8652fc5f6d4ff8b3fee4197bf4a161d8ac527363 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 16 Nov 2021 17:14:12 +0100 Subject: [PATCH] [zfs] Fix schema - typo (canmount vs canMount) - the canMount property is nominally a string, but YAML is 'special' and interprets 'on' and 'off' and 'yes' and 'no' and other strings as booleans unless quoted. --- src/modules/zfs/zfs.schema.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/zfs/zfs.schema.yaml b/src/modules/zfs/zfs.schema.yaml index fb83778ad..ddad6d77b 100644 --- a/src/modules/zfs/zfs.schema.yaml +++ b/src/modules/zfs/zfs.schema.yaml @@ -17,6 +17,8 @@ properties: properties: dsName: { type: string } mountpoint: { type: string } - canMount: { type: string } - required: [ dsName, mountpoint, canmount ] + # Nominally a string, but "on" and "off" are valid and get + # turned into a boolean in the YAML parser. + canMount: { anyOf: [ { type: string }, { type: boolean } ] } + required: [ dsName, mountpoint, canMount ] required: [ poolName, datasets ]