Skip to content

Commit

Permalink
Fix issue flagged by pydoclint
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
t1m0thyj committed Oct 14, 2024
1 parent d1114a3 commit 5a45283
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 5a45283

Please sign in to comment.