fix play_context connection_user attribute (#21640)

The connection user needs to be set from the original play_context and
not the copy.  This fixes that problem
pull/21643/head
Peter Sprygada 8 years ago committed by GitHub
parent 9b166f6f29
commit c06b10eedd

@ -443,7 +443,7 @@ class PlayContext(Base):
# additionally, we need to do this check after final connection has been # additionally, we need to do this check after final connection has been
# correctly set above ... # correctly set above ...
if new_info.connection == 'local': if new_info.connection == 'local':
new_info.connection_user = new_info.remote_user new_info.connection_user = self.remote_user
new_info.remote_user = pwd.getpwuid(os.getuid()).pw_name new_info.remote_user = pwd.getpwuid(os.getuid()).pw_name
# set no_log to default if it was not previouslly set # set no_log to default if it was not previouslly set

Loading…
Cancel
Save