mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 03:33:10 +00:00
Merge pull request #11084 from echiu64/devel
More complex example of using test-module
This commit is contained in:
@@ -33,6 +33,22 @@ Example:
|
||||
|
||||
This is a good way to insert a breakpoint into a module, for instance.
|
||||
|
||||
For more complex arguments such as the following yaml:
|
||||
|
||||
```yaml
|
||||
parent:
|
||||
child:
|
||||
- item: first
|
||||
val: foo
|
||||
- item: second
|
||||
val: boo
|
||||
```
|
||||
|
||||
Use:
|
||||
|
||||
$ ./hacking/test-module -m module \
|
||||
-a "{"parent": {"child": [{"item": "first", "val": "foo"}, {"item": "second", "val": "bar"}]}}"
|
||||
|
||||
Module-formatter
|
||||
----------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user