Skip to content

Commit

Permalink
Fix frozen string error (puppetlabs#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaefeli authored and davejrt committed Feb 18, 2019
1 parent 8f333f6 commit de3f000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/swarm_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def swarm_token(node_role)
cmd_string = 'docker swarm join-token -q'
cmd_string << " #{node_role}" unless node_role.nil?
cmd_string += " #{node_role}" unless node_role.nil?

stdout, stderr, status = Open3.capture3(cmd_string)
raise Puppet::Error, "stderr: '#{stderr}'" if status != 0
Expand Down

0 comments on commit de3f000

Please sign in to comment.