Skip to content

Commit e189aeb

Browse files
committed
power/mfi_mpower: Fix url handling in get_credentials
Signed-off-by: Maciej Grela <enki@fsck.pl>
1 parent e7a4844 commit e189aeb

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)