Skip to content

Commit 0cc175d

Browse files
committed
drop validate_* with datatypes in write_network
1 parent 4e55b02 commit 0cc175d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

manifests/plugin/write_network.pp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# A define to make a generic network output for collectd
22
class collectd::plugin::write_network (
3-
$ensure = 'present',
4-
$servers = { 'localhost' => { 'serverport' => '25826' } },
3+
$ensure = 'present',
4+
Hash $servers = { 'localhost' => { 'serverport' => '25826' } },
55
) {
66

77
include ::collectd
88

9-
validate_hash($servers)
10-
119
$servernames = keys($servers)
1210
if empty($servernames) {
1311
fail('servers cannot be empty')

0 commit comments

Comments
 (0)