diff --git a/changelogs/fragments/13-remove-id-restriction-for-api.yaml b/changelogs/fragments/13-remove-id-restriction-for-api.yaml new file mode 100644 index 00000000..c1ba0db8 --- /dev/null +++ b/changelogs/fragments/13-remove-id-restriction-for-api.yaml @@ -0,0 +1,2 @@ +bugfixes: +- api - remove ``id to .id`` as default requirement which conflicts with RouterOS ``id`` configuration parameter (https://github.com/ansible-collections/community.routeros/pull/15). diff --git a/plugins/modules/api.py b/plugins/modules/api.py index 20eb9ad8..bb5d7a86 100644 --- a/plugins/modules/api.py +++ b/plugins/modules/api.py @@ -324,8 +324,6 @@ def list_to_dic(self, ldict): if '=' not in p: self.errors("missing '=' after '%s'" % p) p = p.split('=') - if p[0] == 'id': - self.errors("'%s' must be '.id'" % p[0]) if p[1]: dict[p[0]] = p[1] return dict