Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the VNC password directly (#1592686) #1617

Merged
merged 1 commit into from
Sep 25, 2018

Conversation

poncovka
Copy link
Contributor

The vncpasswd tool was waiting for an input from a pipe, because the
file descriptor for writing wasn't closed. Let's not use pipes at all.
We can use the input argument of the communicate method instead.

Resolves: rhbz#1592686

@poncovka poncovka added master Please, use the `f39` label instead. f29 labels Sep 20, 2018
Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please look on the item below.


return rc
if proc.returncode != 0:
raise OSError("Unable to set the VNC password.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also log stderr in this case please if possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

The vncpasswd tool was waiting for an input from a pipe, because the
file descriptor for writing wasn't closed. Let's not use pipes at all.
We can use the input argument of the communicate method instead.

Resolves: rhbz#1592686
@poncovka
Copy link
Contributor Author

Updated.

Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now.

@poncovka poncovka merged commit 050e103 into rhinstaller:f29-devel Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f29 master Please, use the `f39` label instead.
Development

Successfully merging this pull request may close these issues.

2 participants