Skip to content

Commit

Permalink
cleanup of comments and trace notes
Browse files Browse the repository at this point in the history
  • Loading branch information
richp405 committed May 7, 2024
1 parent a13f02f commit 5c97502
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions plugins/modules/zos_apf.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,6 @@ def main():
except ValueError as err:
module.fail_json(msg="Parameter verification failed", stderr=str(err))

# _orig_library = parsed_args.get("library")
# library = DataSet.escape_data_set_name(_orig_library)
library = parsed_args.get("library")

state = parsed_args.get('state')
Expand Down
14 changes: 0 additions & 14 deletions tests/functional/modules/test_zos_apf_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ def test_add_del(ansible_zos_module, volumes_with_vvds):
hosts.all.shell(f"dtouch -tseq -V{volume} {ds} ")
test_info['library'] = ds
if test_info.get('volume') is not None:
print("\n======volume not none====\n")
cmdStr = "dls -l " + ds + " | awk '{print $5}' "
results = hosts.all.shell(cmd=cmdStr)
for result in results.contacted.values():
vol = result.get("stdout")
test_info['volume'] = vol
if test_info.get('persistent'):
print("\n====persistent populated====\n")
cmdStr = "mvstmp APFTEST.PRST"
results = hosts.all.shell(cmd=cmdStr)
for result in results.contacted.values():
Expand All @@ -76,23 +74,11 @@ def test_add_del(ansible_zos_module, volumes_with_vvds):
cmdStr = "dtouch -tseq {0}".format(prstds)
hosts.all.shell(cmd=cmdStr)
test_info['persistent']['data_set_name'] = prstds
print("\n====================79 testinfo\n")
pprint(test_info)
print("\n=======\n")
results = hosts.all.zos_apf(**test_info)
print("\n======= line 83: results\n")
print(vars(results))
print("\n==================== line 85: itemized resultsn")
for result in results.contacted.values():
assert result.get("rc") == 0
test_info['state'] = 'absent'
print("\n==================== line 89 info\n")
pprint(test_info)
print("\n=======\n")
results = hosts.all.zos_apf(**test_info)
print("\n======= line 93 results\n")
print(vars(results))
print("\n====================\n")
for result in results.contacted.values():
assert result.get("rc") == 0
finally:
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import random
import time
import re
# from ansible_collections.ibm.ibm_zos_core.plugins.module_utils.data_set import DataSet


def get_tmp_ds_name(mlq_size=7, llq_size=7, symbols=False):
Expand All @@ -38,7 +37,6 @@ def get_tmp_ds_name(mlq_size=7, llq_size=7, symbols=False):
else:
ds += "C" + get_random_qs(llq_size).upper()

# return DataSet.escape_data_set_name(ds)
return(ds)


Expand Down

0 comments on commit 5c97502

Please sign in to comment.