From 70042dd3c87f63e8bc6f65a4bc81bbf65e80d06f Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Sat, 2 Mar 2024 16:06:02 +0100 Subject: [PATCH] Remove default value for "running" field in "interface wireless" The `running` field can't be configured. By having a default value it's written and shows up in diffs. --- changelogs/fragments/264-wireless-running-default.yml | 2 ++ plugins/module_utils/_api_data.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/264-wireless-running-default.yml diff --git a/changelogs/fragments/264-wireless-running-default.yml b/changelogs/fragments/264-wireless-running-default.yml new file mode 100644 index 00000000..53417182 --- /dev/null +++ b/changelogs/fragments/264-wireless-running-default.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - remove default value for read-only ``running`` field in ``interface wireless`` (https://github.com/ansible-collections/community.routeros/pull/264). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index dfbaa233..03c5833d 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -1932,7 +1932,7 @@ def join_path(path): 'radio-name': KeyInfo(), 'rate-selection': KeyInfo(default='advanced'), 'rate-set': KeyInfo(default='default'), - 'running': KeyInfo(default=False, read_only=True), + 'running': KeyInfo(read_only=True), 'rx-chains': KeyInfo(default='0,1'), 'scan-list': KeyInfo(default='default'), 'secondary-frequency': KeyInfo(default=''),