Make class parameters required
These parameters are fed unconditionally into the config template, and there is no sensible default that we can provide. This patch makes all parameters required, except for $channels whose default the template is prepared to handle. Change-Id: I0a691c7d32316252a628438eb169b31134b42e5b
This commit is contained in:
parent
179da46b2c
commit
083b70c395
|
@ -1,15 +1,15 @@
|
|||
# == Class: statusbot
|
||||
#
|
||||
class statusbot(
|
||||
$nick = '',
|
||||
$password = '',
|
||||
$server = '',
|
||||
$nick,
|
||||
$password,
|
||||
$server,
|
||||
$auth_nicks,
|
||||
$wiki_user,
|
||||
$wiki_password,
|
||||
$wiki_url,
|
||||
$wiki_pageid,
|
||||
$channels = [],
|
||||
$auth_nicks = '',
|
||||
$wiki_user = '',
|
||||
$wiki_password = '',
|
||||
$wiki_url = '',
|
||||
$wiki_pageid = '',
|
||||
) {
|
||||
|
||||
user { 'statusbot':
|
||||
|
|
Loading…
Reference in New Issue