Commit 175fc9fc authored by Waleed Akbar's avatar Waleed Akbar
Browse files

fix: Add authentication to stream request in telemetry subscription

parent 048ba67f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ def main() -> None:
    stream_url = 'http://{:s}:{:d}{:s}'.format(RESTCONF_ADDRESS, RESTCONF_PORT, subscription_uri)
    print('Opening stream "{:s}" (press Ctrl+C to stop)...'.format(stream_url))

    with requests.get(stream_url, stream=True) as resp:
    with requests.get(stream_url, stream=True, auth=auth) as resp:
        for line in resp.iter_lines(decode_unicode=True):
            print(line)