<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_floating_ip_action(self, ip_addr, action_id):
 """ Retrieve the status of a Floating IP action. """

        if self.api_version == 2:
            json = self.request('/floating_ips/' + ip_addr + '/actions/' + action_id)
            return json['action']
        else:
            raise DoError(v2_api_required_str)