Skip to content

Commit 84e8edc

Browse files
jfrochedavejrt
authored andcommitted
fix(syntax): Remove duplicate parenthesis (#454)
1 parent c8b5902 commit 84e8edc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

manifests/plugin.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
$docker_command = "${docker::params::docker_command} plugin"
6666

6767
if ($::osfamily == 'windows') {
68-
fail(translate(('Feature not implemented on windows.')))
68+
fail(translate('Feature not implemented on windows.'))
6969
}
7070

7171
if $ensure == 'present' {

manifests/run.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@
158158
}
159159

160160
if ($remove_volume_on_start and !$remove_container_on_start) {
161-
fail translate(("In order to remove the volume on start for ${title} you need to also remove the container"))
161+
fail(translate("In order to remove the volume on start for ${title} you need to also remove the container"))
162162
}
163163

164164
if ($remove_volume_on_stop and !$remove_container_on_stop) {
165-
fail translate(("In order to remove the volume on stop for ${title} you need to also remove the container"))
165+
fail(translate("In order to remove the volume on stop for ${title} you need to also remove the container"))
166166
}
167167

168168
if $use_name {
@@ -352,10 +352,10 @@
352352
}
353353
default: {
354354
if $::osfamily != 'windows' {
355-
fail translate(('Docker needs a Debian or RedHat based system.'))
355+
fail(translate('Docker needs a Debian or RedHat based system.'))
356356
}
357357
elsif $ensure == 'present' {
358-
fail translate(('Restart parameter is required for Windows'))
358+
fail(translate('Restart parameter is required for Windows'))
359359
}
360360
}
361361
}

manifests/services.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@
108108

109109
if $ensure == 'absent' {
110110
if $update {
111-
fail translate(('When removing a service you can not update it.'))
111+
fail(translate('When removing a service you can not update it.'))
112112
}
113113
if $scale {
114-
fail translate(('When removing a service you can not update it.'))
114+
fail(translate('When removing a service you can not update it.'))
115115
}
116116
}
117117

0 commit comments

Comments
 (0)