Skip to content

Commit 544f75c

Browse files
committed
Fix typos
1 parent 85a82af commit 544f75c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/functional/modules/test_zos_copy_func.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3240,7 +3240,7 @@ def test_copy_dir_to_non_existing_pdse(ansible_zos_module):
32403240

32413241
copy_res = hosts.all.zos_copy(src=src_dir, dest=dest, remote_src=True)
32423242
verify_copy = hosts.all.shell(
3243-
cmd=f"cat \"//'{dest + "(FILE2)"}'\" > /dev/null 2>/dev/null",
3243+
cmd="cat \"//'{0}'\" > /dev/null 2>/dev/null".format(dest + "(FILE2)"),
32443244
executable=SHELL_EXECUTABLE,
32453245
)
32463246

@@ -5280,11 +5280,8 @@ def test_display_verbosity_in_zos_copy_plugin(ansible_zos_module, options):
52805280
python_path = hosts["options"]["ansible_python_path"]
52815281

52825282
# This is an adhoc command, because there was no
5283-
cmd = "".join(f"ansible all -i {node}, -u {user} -m ibm.ibm_zos_core.zos_copy -a "
5284-
f"\"src={options["src"]} dest={options["dest"]} "
5285-
f"is_remote={options["is_remote"]} encoding={{enc}} \" -e "
5286-
f"'{{\"enc\":{{\"from\": \"ISO8859-1\", \"to\": \"IBM-1047\"}}}}' -e \""
5287-
f"ansible_python_interpreter={python_path}\" {options["verbosity"]}")
5283+
cmd = "ansible all -i " + str(node) + ", -u " + user + " -m ibm.ibm_zos_core.zos_copy -a \"src=" + options["src"] + " dest=" + options["dest"] + " is_remote=" + str(
5284+
options["is_remote"]) + " encoding={{enc}} \" -e '{\"enc\":{\"from\": \"ISO8859-1\", \"to\": \"IBM-1047\"}}' -e \"ansible_python_interpreter=" + python_path + "\" " + options["verbosity"] + ""
52885285

52895286
with subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).stdout as process:
52905287
output = process.read().decode()

0 commit comments

Comments
 (0)