Skip to content

Commit

Permalink
debconf detail requirements and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gundalow committed Apr 1, 2014
1 parent 6a1dcca commit f89262c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/system/debconf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ notes:
- A number of questions have to be answered (depending on the package).
Use 'debconf-show <package>' on any Debian or derivative with the package
installed to see questions/settings available.
requirements: [ debconf, debconf-utils ]
options:
name:
description:
Expand Down Expand Up @@ -127,10 +128,10 @@ def main():
supports_check_mode=True,
)

#TODO: enable passing array of optionas and/or debconf file from get-selections dump
#TODO: enable passing array of options and/or debconf file from get-selections dump
pkg = module.params["name"]
question = module.params["question"]
vtype = module.params["vtype"]
vtype = module.params["vtype"]
value = module.params["value"]
unseen = module.params["unseen"]

Expand All @@ -142,7 +143,7 @@ def main():

if question is not None:
if vtype is None or value is None:
module.fail_json(msg="when supliying a question you must supply a valide vtype and value")
module.fail_json(msg="when supplying a question you must supply a valid vtype and value")

if not question in prev or prev[question] != value:
changed = True
Expand Down

0 comments on commit f89262c

Please sign in to comment.