Skip to content

Commit

Permalink
Fixes #256: make path user group modifiable and add comment attri…
Browse files Browse the repository at this point in the history
…bute (#257)

* Fixes #256: make path `user group` modifiable and add `comment` attribute`

Add changelog fragment

* Update changelogs/fragments/257-make-user_group-modifiable.yml

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
derdeagle and felixfontein authored Feb 1, 2024
1 parent d1401bd commit 542a362
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/257-make-user_group-modifiable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - make path ``user group`` modifiable and add ``comment`` attribute (https://github.com/ansible-collections/community.routeros/issues/256, https://github.com/ansible-collections/community.routeros/pull/257).
2 changes: 1 addition & 1 deletion plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4117,10 +4117,10 @@ def join_path(path):
),
('user', 'group'): APIData(
unversioned=VersionedAPIData(
fixed_entries=True,
primary_keys=('name', ),
fully_understood=True,
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'name': KeyInfo(),
'policy': KeyInfo(),
'skin': KeyInfo(default='default'),
Expand Down

0 comments on commit 542a362

Please sign in to comment.