Skip to content

default value for channel.recv_exit_status() changed: -1 -> None - #492

Open
oxpa wants to merge 1 commit into
paramiko:mainfrom
oxpa:channel_default_ret
Open

oxpa wants to merge 1 commit into
paramiko:mainfrom
oxpa:channel_default_ret

Conversation

@oxpa

@oxpa oxpa commented Feb 24, 2015

Copy link
Copy Markdown

As discussed at #489 :
If a channel returned -1 it's difficult to find out if it's a channel default exit code or there was no exit code from server.
This PR changes default from -1 to None.
This doesn't seem to break any code inside paramiko: nothing uses exit_code directly.
This may break programs testing for "exit_code == -1" and facing a 'broken' server

@bitprophet

Copy link
Copy Markdown
Member

As @lndbrg said in the original ticket, yea, this sounds like a good idea offhand. Thanks for the submission

Agree that this has implications for client software, so I'm gonna dump this into the 2.0 bucket (at the risk of making that a huge release...meh!)

@bitprophet bitprophet added this to the 2.0 milestone Feb 27, 2015
@bitprophet bitprophet modified the milestones: 2.0, 3.0 Apr 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants