From ffd5a6370cdcc27370e475bb0d4e28f46f833d1f Mon Sep 17 00:00:00 2001 From: hansmi Date: Sat, 2 Mar 2024 12:49:37 +0100 Subject: [PATCH] Add missing fields in "system package update" (#263) Signed-off-by: Michael Hanselmann --- changelogs/fragments/263-sys-pkg-update.yml | 2 ++ plugins/module_utils/_api_data.py | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/263-sys-pkg-update.yml diff --git a/changelogs/fragments/263-sys-pkg-update.yml b/changelogs/fragments/263-sys-pkg-update.yml new file mode 100644 index 00000000..9d3c3d16 --- /dev/null +++ b/changelogs/fragments/263-sys-pkg-update.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add read-only fields ``installed-version``, ``latest-version`` and ``status`` in ``system package update`` (https://github.com/ansible-collections/community.routeros/pull/263). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 8353614a..dfbaa233 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -3508,6 +3508,9 @@ def join_path(path): fully_understood=True, fields={ 'channel': KeyInfo(default='stable'), + 'installed-version': KeyInfo(read_only=True), + 'latest-version': KeyInfo(read_only=True), + 'status': KeyInfo(read_only=True), }, ), ),