Skip to content

Commit

Permalink
Update datasets.py
Browse files Browse the repository at this point in the history
Signed-off-by: pem70 <[email protected]>
  • Loading branch information
pem70 committed Jul 2, 2024
1 parent fbe561d commit 11f313c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zos_files/zowe/zos_files_for_zowe_sdk/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def create(self, dataset_name, options: Optional[DatasetOption] = None):
raise ValueError("You must specify dataset options when creating one.")

if options.like is None:
if options.primary is None or options.lrecl is None:
if options.primary is None and options.lrecl is None:
self.logger.error("If 'like' is not specified, you must specify 'primary' or 'lrecl'.")
raise ValueError("If 'like' is not specified, you must specify 'primary' or 'lrecl'.")
if options.dirblk is not None:
Expand Down

0 comments on commit 11f313c

Please sign in to comment.