Skip to content

Commit 9ea1e69

Browse files
committed
Fix style/lint issues
1 parent ff747dc commit 9ea1e69

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

Diff for: functions/target_host.pp

+3
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ function peadm::target_host(
1111
Array[Target,0,0]: {
1212
undef
1313
}
14+
default: {
15+
fail('Unexpected input type to peadm::target_host function')
16+
}
1417
}
1518
}

Diff for: lib/puppet/functions/peadm/node_manager_yaml_location.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
dispatch :nm_yaml_location do
33
end
44

5-
def nm_yaml_location()
5+
def nm_yaml_location
66
File.join(Puppet.settings['confdir'], 'node_manager.yaml')
77
end
88
end

Diff for: plans/unit/configure.pp

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
# Necessary to give the sandboxed Puppet executor the configuration
5656
# necessary to connect to the classifier`
5757
file { 'node_manager.yaml':
58-
ensure => file,
59-
mode => '0644',
60-
path => Deferred('peadm::node_manager_yaml_location'),
61-
content => epp('peadm/node_manager.yaml.epp', {
58+
ensure => file,
59+
mode => '0644',
60+
path => Deferred('peadm::node_manager_yaml_location'),
61+
content => epp('peadm/node_manager.yaml.epp', {
6262
server => $master_host_string,
6363
}),
6464
}

Diff for: types/singletargetspec.pp

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Array[Target, 1, 1]. This is a constrained type variant of
44
# Boltlib::TargetSpec for use when a _single_ target is valid, but multiple
55
# targets are not.
6-
type Peadm::SingleTargetSpec = Variant[Pattern[/\A[^[:space:],]+\z/],
7-
Target,
8-
Array[Boltlib::SingleTargetSpec, 1, 1]]
6+
type Peadm::SingleTargetSpec = Variant[
7+
Pattern[/\A[^[:space:],]+\z/],
8+
Target,
9+
Array[Boltlib::SingleTargetSpec, 1, 1]
10+
]

0 commit comments

Comments
 (0)