Add shebang line

This commit is contained in:
Patrick Neff 2020-08-06 19:46:39 +02:00
parent 73cc05bda5
commit 994c3093b5
3 changed files with 6 additions and 2 deletions

2
icinga-host-message.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import os
import socket

2
icinga-service-message.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import os
import socket

View File

@ -141,7 +141,7 @@ class Bot(object):
async def sync(self) -> None:
self.logger.debug('Starting sync')
next_batch = self.__read_next_batch()
self.__upload_keys()
await self.__upload_keys()
await self.client.sync(timeout=30000,
full_state=True,
@ -161,7 +161,7 @@ class Bot(object):
self.logger.debug('Adding callbacks')
client.add_to_device_callback(self.__to_device_callback,
(KeyVerificationEvent, ))
self.__upload_keys()
await self.__upload_keys()
click.secho('\nStarting verification process...',
bold=True,
fg='green')