From f6fe157d3dc26311dc304f394858c2b6f40d2bf0 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 7 Nov 2012 13:18:10 -0500 Subject: [PATCH] check-mirroring: Get the max_message_id from get_profile() (imported from commit 95f457b91563a92eee24c4487c00abe7132b4ff8) --- bots/check-mirroring | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bots/check-mirroring b/bots/check-mirroring index a5caa47..559c569 100755 --- a/bots/check-mirroring +++ b/bots/check-mirroring @@ -92,10 +92,7 @@ else: subs.add(('message', 'personal', 'tabbott/extra@ATHENA.MIT.EDU')) subs.add(('tabbott-nagios-test', '*', '*')) - res = humbug_client.get_messages({'server_generation': '0', - 'first': '0', - 'last': '1000000000000',}) - max_message_id = res['max_message_id'] + max_message_id = humbug_client.get_profile()['max_message_id'] time.sleep(10) print "Receiving messages!"