def get_resource_image(status, type):
 resource_type = get_resource_type(type)
 resource_status = get_resource_status(status)
 resource_state = ((resource_type + '_') + resource_status)
 for key in resource_images:
  if (key == resource_state):
   return resource_images.get(key)

def get_resource_image ( status , type ) : resource_type = get_resource_type ( type ) resource_status = get_resource_status ( status ) resource_state = ( ( resource_type + '_' ) + resource_status ) for key in resource_images : if ( key == resource_state ) : return resource_images . get ( key )
sets the image url and in_progress action sw based on status .