Skip to content

Commit

Permalink
Update User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyslav-huriev committed Oct 31, 2023
1 parent bdf09f6 commit 61002fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sekoia_automation/connector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def _retry(self):

@cached_property
def _connector_user_agent(self) -> str:
return f"sekoiaio-connector-{self.configuration.intake_key}"
return "sekoiaio-connector/{}-{}".format(
self.module.manifest.get("slug", ""),
self.module.manifest.get("version", ""),
)

def _send_chunk(
self,
Expand Down

0 comments on commit 61002fc

Please sign in to comment.