From 31c8097e53ce88a61cab8a50e22c11048b633bc9 Mon Sep 17 00:00:00 2001 From: janorga Date: Wed, 3 Jul 2024 17:01:55 +0200 Subject: [PATCH] fix cli_parse: require connection (#357) * fix cli_parse: require connection * add changelog fragment * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- changelogs/fragments/fix_cli_parse.yaml | 3 +++ plugins/action/cli_parse.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/fix_cli_parse.yaml diff --git a/changelogs/fragments/fix_cli_parse.yaml b/changelogs/fragments/fix_cli_parse.yaml new file mode 100644 index 0000000..920f639 --- /dev/null +++ b/changelogs/fragments/fix_cli_parse.yaml @@ -0,0 +1,3 @@ +--- +minor_changes: + - Fix cli_parse module to require a connection. diff --git a/plugins/action/cli_parse.py b/plugins/action/cli_parse.py index de8b418..e045a89 100644 --- a/plugins/action/cli_parse.py +++ b/plugins/action/cli_parse.py @@ -37,7 +37,7 @@ ARGSPEC_CONDITIONALS = { class ActionModule(ActionBase): """action module""" - _requires_connection = False + _requires_connection = True PARSER_CLS_NAME = "CliParser"