|
68 | 68 | } |
69 | 69 | ) |
70 | 70 |
|
71 | | - $exec_install = [$docker_command, 'install', $docker_plugin_install_flags] |
72 | | - $unless_install = [$docker_command, 'ls', "--format='{{.PluginReference}}' | grep -w ${plugin_name}"] |
| 71 | + $exec_install = "${docker_command} install ${docker_plugin_install_flags}" |
| 72 | + $unless_install = "${docker_command} ls --format='{{.PluginReference}}' | grep -w ${plugin_name}" |
73 | 73 |
|
74 | 74 | exec { "plugin install ${plugin_name}": |
75 | 75 | command => $exec_install, |
|
86 | 86 | ) |
87 | 87 |
|
88 | 88 | $exec_rm = [$docker_command, 'rm', $docker_plugin_remove_flags] |
89 | | - $onlyif_rm = [$docker_command, 'ls', "--format='{{.PluginReference}}' | grep -w ${plugin_name}"] |
| 89 | + $onlyif_rm = "${docker_command} ls --format='{{.PluginReference}}' | grep -w ${plugin_name}" |
90 | 90 |
|
91 | 91 | exec { "plugin remove ${plugin_name}": |
92 | 92 | command => $exec_rm, |
|
106 | 106 | ) |
107 | 107 |
|
108 | 108 | $exec_enable = [$docker_command, 'enable', $docker_plugin_enable_flags] |
109 | | - $onlyif_enable = [$docker_command, 'ls', '-f', "enabled=false --format='{{.PluginReference}}' | grep -w ${plugin_name}"] |
| 109 | + $onlyif_enable = "${docker_command} ls -f enabled=false --format='{{.PluginReference}}' | grep -w ${plugin_name}" |
110 | 110 |
|
111 | 111 | exec { "plugin enable ${plugin_name}": |
112 | 112 | command => $exec_enable, |
|
117 | 117 | } |
118 | 118 | } elsif $enabled == false { |
119 | 119 | $else_command = [$docker_command, 'disable', $plugin_name] |
120 | | - $else_unless = [$docker_command, 'ls', '-f', "enabled=false --format='{{.PluginReference}}' | grep -w ${plugin_name}"] |
| 120 | + $else_unless = "${docker_command} ls -f enabled=false --format='{{.PluginReference}}' | grep -w ${plugin_name}" |
121 | 121 |
|
122 | 122 | exec { "disable ${plugin_name}": |
123 | 123 | command => $else_command, |
|
0 commit comments