@@ -3240,7 +3240,7 @@ def test_copy_dir_to_non_existing_pdse(ansible_zos_module):
3240
3240
3241
3241
copy_res = hosts .all .zos_copy (src = src_dir , dest = dest , remote_src = True )
3242
3242
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)" ) ,
3244
3244
executable = SHELL_EXECUTABLE ,
3245
3245
)
3246
3246
@@ -5280,11 +5280,8 @@ def test_display_verbosity_in_zos_copy_plugin(ansible_zos_module, options):
5280
5280
python_path = hosts ["options" ]["ansible_python_path" ]
5281
5281
5282
5282
# 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" ] + ""
5288
5285
5289
5286
with subprocess .Popen (cmd , shell = True , stdout = subprocess .PIPE ).stdout as process :
5290
5287
output = process .read ().decode ()
0 commit comments