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 2d7027b commit 411d085Copy full SHA for 411d085
lib/puppet/parser/functions/docker_plugin_enable_flags.rb
@@ -10,7 +10,11 @@ module Puppet::Parser::Functions
10
opts = args[0] || {}
11
flags = []
12
flags << '--force' if opts['force_remove'] == true
13
- flags << "'#{opts['plugin_name']}'" if opts['plugin_name'] && opts['plugin_name'].to_s != 'undef'
+ 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'
17
+ end
18
flags.flatten.join(' ')
19
end
20
0 commit comments