Skip to content

Commit f697d0d

Browse files
committed
facts.pp: use more compact parameter syntax
1 parent c9f782d commit f697d0d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

manifests/facts.pp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@
1919
$port = $jira::tomcat_port,
2020
$contextpath = $jira::contextpath,
2121
$json_packages = $jira::params::json_packages,
22-
# lint:ignore:parameter_order
23-
$uri = $jira::tomcat_address ? {
24-
undef => 'localhost',
25-
default => $jira::tomcat_address,
26-
},
27-
# lint:endignore
22+
$uri = pick($jira::tomcat_address, 'localhost')
2823
) inherits jira::params {
2924
# Puppet Enterprise supplies its own ruby version if you're using it.
3025
# A modern ruby version is required to run the executable fact

0 commit comments

Comments
 (0)