From 6c618cab26546efb75199112292826280746fd40 Mon Sep 17 00:00:00 2001 From: Nikolay Dachev Date: Thu, 10 Dec 2020 23:43:03 +0200 Subject: [PATCH] remove .id restriction for list_to_dic (#15) * remove .id restriction for list_to_dic * add change log * Update changelogs/fragments/13-remove-id-restriction-for-api.yaml Co-authored-by: Felix Fontein Co-authored-by: dako Co-authored-by: Felix Fontein --- changelogs/fragments/13-remove-id-restriction-for-api.yaml | 2 ++ plugins/modules/api.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/13-remove-id-restriction-for-api.yaml 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 0000000..c1ba0db --- /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 20eb9ad..bb5d7a8 100644 --- a/plugins/modules/api.py +++ b/plugins/modules/api.py @@ -324,8 +324,6 @@ class ROS_api_module: 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