Skip to content

Commit

Permalink
Add missing fields in "system package update" (#263)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hanselmann <[email protected]>
  • Loading branch information
hansmi authored Mar 2, 2024
1 parent f616004 commit ffd5a63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/263-sys-pkg-update.yml
Original file line number Diff line number Diff line change
@@ -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).
3 changes: 3 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
),
),
Expand Down

0 comments on commit ffd5a63

Please sign in to comment.