def response_handler(resp):
     if resp.is_success:
         return format_replication_inventory(resp.body)
     raise ReplicationInventoryError(resp, request)
 def response_handler(resp):
     if resp.is_success:  # pragma: no cover
         return format_replication_inventory(resp.body)
     raise ReplicationClusterInventoryError(resp, request)