aboutsummaryrefslogtreecommitdiffstats
path: root/uci.py
diff options
context:
space:
mode:
Diffstat (limited to 'uci.py')
-rw-r--r--uci.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/uci.py b/uci.py
index b85f207..0ad3eae 100644
--- a/uci.py
+++ b/uci.py
@@ -52,7 +52,9 @@ options:
index:
description:
- index of anonymous section
+ - defaults to 0 so the unique section is possible to access only trough its type
required: false
+ default: 0
item:
description:
- value is option/list
@@ -168,7 +170,7 @@ def main():
package = dict(aliases=["p"], required=True),
section = dict(aliases=["s"], required=False),
type = dict(required=False),
- index = dict(required=False),
+ index = dict(default="0", required=False),
item = dict(default="option", choices=["option", "list"]),
state = dict(default="present", choices=["present", "absent"]),
create = dict(default="yes", type='bool')