Skip to content

Commit 6b46364

Browse files
Merge pull request #1925 from enkiusz/mfi-mpower-fix-get_credentials
power/mfi_mpower: Fix url handling in get_credentials
2 parents 9d09585 + e189aeb commit 6b46364

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

labgrid/driver/power/mfi_mpower.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_credentials(base_url: str) -> Tuple[str, dict]:
4343
credentials = dict(username='ubnt', password='ubnt')
4444
else:
4545
credentials = dict(username=base_url.username, password=base_url.password)
46-
base_url._replace(netloc=base_url.netloc.replace(f'{base_url.username}:{base_url.password}@', ''))
46+
base_url = base_url._replace(netloc=base_url.netloc.replace(f'{base_url.username}:{base_url.password}@', ''))
4747

4848
base_url = base_url.geturl()
4949
return (base_url, credentials)

0 commit comments

Comments
 (0)