Skip to content

Commit fa2f0e1

Browse files
committed
Resource/config_type can be none
when the config doesn't exist
1 parent ae7bc46 commit fa2f0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iocage/lib/Resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _set_dataset(self, value) -> None:
181181
# return self.dataset.mountpoint
182182

183183
@property
184-
def config_type(self) -> str:
184+
def config_type(self) -> typing.Optional[str]:
185185
if self._config_type is None:
186186
return None
187187
elif self._config_type == self.CONFIG_TYPES.index("auto"):

0 commit comments

Comments
 (0)