Skip to content

api_modify container cmd error - got multiple values #442

@maksimsamt

Description

@maksimsamt

Related with v3170-a1 release.

    - name: Container add
      community.routeros.api_modify:
        path: container
        data:
          - name: nginx
            remote-image: nginx
            interface: veth1
            ...
            entrypoint: "sleep"
            cmd: "infinity"
            hostname: my.hostname

Error:

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Task failed: Module failed: Path.__call__() got multiple values for argument 'cmd'"}

with --check --diff

--- before
+++ after
@@ -1,3 +1,19 @@
 {
-    "data": []
+    "data": [
+        {
+            "cmd": "infinity",
+            "entrypoint": "sleep",
+            "hostname": "my.hostname",
+            "interface": "veth1",
+            "name": "nginx",
+            "remote-image": "nginx"
+        }
+    ]
 }

Versions:

Ansible v2.20.2
ansible.netcommon 8.2.1
community.routeros 3.17.0-a2

Env:

Mikrotik RouterOS 7.21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions