Skip to content

Commit

Permalink
[v1.10.0] [module_utils/dd_statement.py] Implement ZOAU 1.3 migration…
Browse files Browse the repository at this point in the history
… changes into module_utils/dd_statement.py (#1190)

* Migrated module_utils/dd_statement

* Added changelog

* Update 1190-migrate-module_utils-dd_statement.yml
  • Loading branch information
fernandofloresg authored Jan 30, 2024
1 parent 433cfc0 commit 032d0d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trivial:
- module_utils/dd_statement.py - migrate code to use ZOAU v1.3.0.
(https://github.com/ansible-collections/ibm_zos_core/pull/1190).
12 changes: 6 additions & 6 deletions plugins/module_utils/dd_statement.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) IBM Corporation 2020, 2023
# Copyright (c) IBM Corporation 2020 - 2024
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand All @@ -10,19 +10,19 @@
# limitations under the License.

from __future__ import absolute_import, division, print_function

import traceback
__metaclass__ = type

from ansible_collections.ibm.ibm_zos_core.plugins.module_utils.import_handler import (
MissingZOAUImport,
ZOAUImportError,
)

from ansible_collections.ibm.ibm_zos_core.plugins.module_utils.data_set import DataSet

try:
from zoautil_py import datasets
except ImportError:
datasets = MissingZOAUImport()
datasets = ZOAUImportError(traceback.format_exc())

space_units = {"b": "", "kb": "k", "mb": "m", "gb": "g"}

Expand Down Expand Up @@ -651,8 +651,8 @@ def __init__(self, tmphlq=None):
if tmphlq:
hlq = tmphlq
else:
hlq = datasets.hlq()
name = datasets.tmp_name(hlq)
hlq = datasets.get_hlq()
name = datasets.tmp_name(high_level_qualifier=hlq)
super().__init__(name)

def __del__(self):
Expand Down

0 comments on commit 032d0d8

Please sign in to comment.