You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
choria.tasks/task-error: The task errored with a code 1 {"_output":""} /opt/puppetlabs/mcollective/tasks-cache/d8bd4ce747fc489e9e7b19cac9776cfde572cfde54813968f4362b5375e19601/swarm_token.rb:10:in swarm_token: can't modify frozen String (FrozenError) from /opt/puppetlabs/mcollective/tasks-cache/d8bd4ce747fc489e9e7b19cac9776cfde572cfde54813968f4362b5375e19601/swarm_token.rb:21:in <main>
How to reproduce it?
mco tasks run docker::swarm_token --node_role manager -I yournode
What you expected to happen?
Puppet Task runs and outputs swarm token.
What happened?
choria.tasks/task-error: The task errored with a code 1 {"_output":""} /opt/puppetlabs/mcollective/tasks-cache/d8bd4ce747fc489e9e7b19cac9776cfde572cfde54813968f4362b5375e19601/swarm_token.rb:10:in swarm_token: can't modify frozen String (FrozenError) from /opt/puppetlabs/mcollective/tasks-cache/d8bd4ce747fc489e9e7b19cac9776cfde572cfde54813968f4362b5375e19601/swarm_token.rb:21:in <main>
How to reproduce it?
mco tasks run docker::swarm_token --node_role manager -I yournode
Anything else we need to know?
https://github.com/puppetlabs/puppetlabs-docker/blob/master/tasks/swarm_token.rb#L2
https://github.com/puppetlabs/puppetlabs-docker/blob/master/tasks/swarm_token.rb#L10
If you create a new instance of the string, it works as expected. (use
+=
instead of<<
)Versions:
Logs:
The text was updated successfully, but these errors were encountered: