MCPcopy Create free account
hub / github.com/aws/aws-cli / add_command_lineage_to_user_agent_extra

Function add_command_lineage_to_user_agent_extra

awscli/utils.py:655–660  ·  view source on GitHub ↗
(session, lineage)

Source from the content-addressed store, hash-verified

653
654
655def add_command_lineage_to_user_agent_extra(session, lineage):
656 # Only add a command lineage if one is not already present in the user agent extra.
657 if not re.search(r'md\/command#[\w\.]*', session.user_agent_extra):
658 add_metadata_component_to_user_agent_extra(
659 session, "command", ".".join(lineage)
660 )

Calls 2

searchMethod · 0.80