From 5a4528364a812214713c5814b14ef72fddc35478 Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Mon, 14 Oct 2024 10:55:26 -0400 Subject: [PATCH] Fix issue flagged by pydoclint Signed-off-by: Timothy Johnson --- src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py b/src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py index db007dca..de59397d 100644 --- a/src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py +++ b/src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py @@ -13,8 +13,9 @@ from typing import Optional from zowe.core_for_zowe_sdk import SdkApi -from zowe.zos_files_for_zowe_sdk import constants, exceptions +from zowe.zos_files_for_zowe_sdk import constants +from .exceptions import InvalidPermsOption, MaxAllocationQuantityExceeded from .response import FileSystemListResponse _ZOWE_FILES_DEFAULT_ENCODING = constants.zos_file_constants["ZoweFilesDefaultEncoding"] @@ -65,12 +66,12 @@ def create(self, file_system_name: str, options: dict = {}) -> dict: if key == "perms": if value < 0 or value > 777: self.logger.error("Invalid Permissions Option.") - raise exceptions.InvalidPermsOption(value) + raise InvalidPermsOption(value) if key == "cylsPri" or key == "cylsSec": if value > constants.zos_file_constants["MaxAllocationQuantity"]: self.logger.error("Maximum allocation quantity exceeded.") - raise exceptions.MaxAllocationQuantityExceeded + raise MaxAllocationQuantityExceeded() custom_args = self._create_custom_request_arguments() custom_args["url"] = "{}mfs/zfs/{}".format(self._request_endpoint, file_system_name)