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.
2 parents 15f8033 + ba019ab commit 8207d16Copy full SHA for 8207d16
tasks/run.rb
@@ -142,7 +142,7 @@ def noop(params)
142
end
143
144
def environment(params)
145
- (params['environment'].length > 1) ? "--environment=#{params['environment']}" : ''
+ (params['environment'] && !params['environment'].empty?) ? "--environment=#{params['environment']}" : ''
146
147
148
# Attempts to run the Puppet agent, returning the mtime for the last run report
0 commit comments