(session, lineage)
| 653 | |
| 654 | |
| 655 | def 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 | ) |