aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-04-06 23:34:04 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-04-07 00:54:47 +0200
commit007ed00acd4e9b4ce5518083ae1c121920ee5e7b (patch)
tree91fdc3e509b5cfe4ec91be11b4bdc13c25e4a205
parentAdd switch noreturn to uci_set() (diff)
downloadansible-uci-007ed00acd4e9b4ce5518083ae1c121920ee5e7b.tar.xz
Parameter name is not required
It is useful for section management.
-rw-r--r--uci.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uci.py b/uci.py
index 79b1202..afec6cf 100644
--- a/uci.py
+++ b/uci.py
@@ -89,7 +89,7 @@ def uci_set(module, binary, key, value, noreturn=False):
def main():
module = AnsibleModule(
argument_spec = dict(
- name = dict(aliases=["key"], required=True),
+ name = dict(aliases=["key"], required=False),
value = dict(aliases=["val"], required=False),
package = dict(aliases=["p"], required=True),
section = dict(aliases=["s"], required=False),