diff --git a/bubuku/cli.py b/bubuku/cli.py index 5f8b67d..6615c22 100644 --- a/bubuku/cli.py +++ b/bubuku/cli.py @@ -148,11 +148,11 @@ def list_actions(broker: str): _print_table(table) -@actions.command('delete', help='List all the actions on broker(s)') +@actions.command('delete', help='Remove all actions of specified type on broker(s)') @click.option('--action', type=click.STRING, help='Action to delete') @click.option('--broker', type=click.STRING, - help='Broker id to list actions on. By default all brokers are enumerated') + help='Broker id to delete actions on. By default actions are deleted on all brokers') def delete_actions(action: str, broker: str): if not action: print('No action specified. Please specify it') diff --git a/bubuku/communicate.py b/bubuku/communicate.py index 234a8f8..929a699 100644 --- a/bubuku/communicate.py +++ b/bubuku/communicate.py @@ -13,9 +13,9 @@ def sleep_and_operate(controller, timeout: float): finish = cur_time + (0.1 if timeout <= 0 else timeout) while cur_time < finish: try: - commnad = __COMMAND_QUEUE.get(block=True, timeout=finish - cur_time) + command = __COMMAND_QUEUE.get(block=True, timeout=finish - cur_time) try: - commnad(controller) + command(controller) except Exception as e: _LOG.error('Command finished with error', exc_info=e) except Empty: