Skip to content

Commit

Permalink
Add end of string to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
grybak-arista committed Mar 28, 2016
1 parent 10e5c5f commit 634131e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyeapi/api/mlag.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _parse_domain_id(self, config):
dict: A dict object that is intended to be merged into the
resource dict
"""
match = re.search(r'domain-id (.+)', config)
match = re.search(r'domain-id (.+)$', config)
value = match.group(1) if match else None
return dict(domain_id=value)

Expand Down

0 comments on commit 634131e

Please sign in to comment.