I need to run compare between two functions and if the functions output not equal, statement will trigger function with specific job number. If equal will pass. I need to run this if-statement for 8 different repos with 8 different ids. Code example:
#first_app_container(7)
if ecr_image_ver('first_app_container') != server_image_ver('first_app_container'):
activate_image_download(7)
else:
pass
#second_app_container(14)
if ecr_image_ver('second_app_container') != server_image_ver('second_app_container'):
activate_image_download(14)
else:
pass
#third_app_container(3)
if ecr_image_ver('third_app_container') != server_image_ver('third_app_container'):
activate_image_download(3)
else:
pass
I'm pretty new on Python and wonder how can i make it with if-statement and for/while loop?
Thank you.