Skip to content

Commit 48b10af

Browse files
[Bugfix][822]lower_case_idcams_utility (#1550)
* Fix * Fix * Add fragment * Modify test case * Change fragment --------- Co-authored-by: Rich Parker <[email protected]>
1 parent b7a1b1b commit 48b10af

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trivial:
2+
- zos_operator - Pass capital letters to the command to idcams utility.
3+
(https://github.com/ansible-collections/ibm_zos_core/pull/1550).

plugins/module_utils/mvs_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def idcams(cmd, dds=None, authorized=False):
171171
tuple(int, str, str)
172172
A tuple of return code, stdout and stderr.
173173
"""
174-
return _run_mvs_command("IDCAMS", cmd, dds, authorized)
174+
return _run_mvs_command("IDCAMS", cmd.upper(), dds, authorized)
175175

176176

177177
def ikjeft01(cmd, dds=None, authorized=False):

tests/functional/modules/test_zos_find_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_exclude_members_from_matched_list(ansible_zos_module):
210210
def test_find_data_sets_older_than_age(ansible_zos_module):
211211
hosts = ansible_zos_module
212212
find_res = hosts.all.zos_find(
213-
patterns=['IMSTESTL.IMS01.RESTART', 'IMSTESTL.IMS01.LGMSGL'],
213+
patterns=['IMSTESTL.IMS01.RESTART', "IMSTESTL.IMS01.LGMSGL".lower()],
214214
age='2d'
215215
)
216216
print(vars(find_res))

0 commit comments

Comments
 (0)