check-mirror: Remove unnecessary zulip_user variable.
This commit is contained in:
parent
fa6a8488dd
commit
362d7424ed
|
@ -41,13 +41,10 @@ sys.path[:0] = [os.path.join(options.root_path, "api/"),
|
||||||
options.root_path]
|
options.root_path]
|
||||||
|
|
||||||
mit_user = 'tabbott/extra@ATHENA.MIT.EDU'
|
mit_user = 'tabbott/extra@ATHENA.MIT.EDU'
|
||||||
zulip_user = 'tabbott/extra@mit.edu'
|
|
||||||
|
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
import zulip
|
import zulip
|
||||||
zulip_client = zulip.Client(
|
zulip_client = zulip.Client(
|
||||||
email=zulip_user,
|
|
||||||
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
||||||
verbose=True,
|
verbose=True,
|
||||||
client="ZulipMonitoring/0.1",
|
client="ZulipMonitoring/0.1",
|
||||||
site=options.site)
|
site=options.site)
|
||||||
|
@ -67,7 +64,7 @@ logger.addHandler(file_handler)
|
||||||
|
|
||||||
# Initialize list of streams to test
|
# Initialize list of streams to test
|
||||||
if options.sharded:
|
if options.sharded:
|
||||||
# NOTE: Streams in this list must be in zulip_user's Zulip
|
# NOTE: Streams in this list must be in the zulip_user's Zulip
|
||||||
# subscriptions, or we won't receive messages via Zulip.
|
# subscriptions, or we won't receive messages via Zulip.
|
||||||
|
|
||||||
# The sharded stream list has a bunch of pairs
|
# The sharded stream list has a bunch of pairs
|
||||||
|
@ -254,7 +251,7 @@ for key, (stream, test) in hzkeys.items():
|
||||||
send_zulip({
|
send_zulip({
|
||||||
"type": "private",
|
"type": "private",
|
||||||
"content": str(key),
|
"content": str(key),
|
||||||
"to": zulip_user,
|
"to": zulip_client.email,
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
send_zulip({
|
send_zulip({
|
||||||
|
|
Loading…
Reference in a new issue