We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3903b9f commit 7b2e5a0Copy full SHA for 7b2e5a0
lib/puppet/parser/functions/docker_plugin_enable_flags.rb
@@ -12,8 +12,8 @@ module Puppet::Parser::Functions
12
flags << '--force' if opts['force_remove'] == true
13
if opts['plugin_alias'] && opts['plugin_alias'].to_s != 'undef'
14
flags << "'#{opts['plugin_alias']}'"
15
- else
16
- flags << "'#{opts['plugin_name']}'" if opts['plugin_name'] && opts['plugin_name'].to_s != 'undef'
+ elsif opts['plugin_name'] && opts['plugin_name'].to_s != 'undef'
+ flags << "'#{opts['plugin_name']}'"
17
end
18
flags.flatten.join(' ')
19
0 commit comments