Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #783 from cisco-open/fr/remove-headers
Browse files Browse the repository at this point in the history
Remove headers from failed parcel
  • Loading branch information
jpkrajewski authored Jul 25, 2024
2 parents 6128555 + bb6e175 commit fd1534f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions catalystwan/api/builders/feature_profiles/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ def wrapper(self, profile_uuid: UUID, parcel: AnyParcel, *args, **kwargs) -> Opt
class FailedRequestDetails(BaseModel):
method: str
url: str
headers: str
body: str

@staticmethod
def from_response(response: Response):
request = response.request
FailedRequestDetails(
method=str(request.method), url=str(request.url), headers=str(request.headers), body=str(request.body)
)
FailedRequestDetails(method=str(request.method), url=str(request.url), body=str(request.body))


class FailedParcel(BaseModel):
Expand Down Expand Up @@ -80,7 +77,6 @@ def add_failed_parcel(
request = FailedRequestDetails(
method=str(request.method),
url=str(request.url),
headers=str(request.headers),
body=str(request.body),
)

Expand Down

0 comments on commit fd1534f

Please sign in to comment.