fix: NameError: global name 'job_name' is not defined

Signed-off-by: Gowrishankar Rajaiyan <gsr@redhat.com>