From 6b7e68d69722e3f398f135ee4295d1c2374d9af6 Mon Sep 17 00:00:00 2001 From: svalouch Date: Wed, 8 Jul 2020 16:56:44 +0200 Subject: [PATCH] types: add 'local' to PropertySource --- src/simplezfs/types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/simplezfs/types.py b/src/simplezfs/types.py index cdc5b38..fe36325 100644 --- a/src/simplezfs/types.py +++ b/src/simplezfs/types.py @@ -103,6 +103,8 @@ class PropertySource(str, Enum): ''' #: Property is at default DEFAULT = 'default' + #: Property was defined on the dataset itself + LOCAL = 'local' #: Property was inerited INHERITED = 'inherited' #: Property is temporary @@ -126,6 +128,8 @@ class PropertySource(str, Enum): val = value.lower() if val == 'default': return PropertySource.DEFAULT + elif val == 'local': + return PropertySource.LOCAL elif val == 'inherited': return PropertySource.INHERITED elif val == 'temporary':