From e44fd77334eca44d3db86135c6c002255a515b60 Mon Sep 17 00:00:00 2001 From: Nick Davis Date: Wed, 20 Feb 2013 19:03:32 -0500 Subject: [PATCH] Corrected module name (removed "mod"). Corrected comment when test=True in set_file. Added example to specify env't for file in set_file. --- salt/states/debconfmod.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/salt/states/debconfmod.py b/salt/states/debconfmod.py index 5274216261..8ea73fc215 100644 --- a/salt/states/debconfmod.py +++ b/salt/states/debconfmod.py @@ -51,6 +51,10 @@ def set_file(name, source): debconf.set_file: - source: salt://pathto/pkg.selections + : + debconf.set_file: + - source: salt://pathto/pkg.selections?env=myenvironment + source: The location of the file containing the package selections ''' @@ -61,10 +65,10 @@ def set_file(name, source): if __opts__['test']: ret['result'] = None - ret['comment'] = 'Debconf selections were set.' + ret['comment'] = 'Debconf selections would have been set.' return ret - if __salt__['debconfmod.set_file'](source): + if __salt__['debconf.set_file'](source): ret['comment'] = 'Debconf selections were set.' else: ret['result'] = False