Skip to content

Commit

Permalink
Handle user option for user selection through docker transport
Browse files Browse the repository at this point in the history
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
  • Loading branch information
Vasu1105 committed Mar 9, 2021
1 parent d5b3c9a commit 6b47e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/train/transports/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def run_command_via_connection(cmd, &_data_handler)
stdout, stderr, exit_status = @container.exec(
[
"/bin/sh", "-c", cmd
]
], user: @options[:user]
)
CommandResult.new(stdout.join, stderr.join, exit_status)
rescue ::Docker::Error::DockerError => _
Expand Down

0 comments on commit 6b47e36

Please sign in to comment.