-
Notifications
You must be signed in to change notification settings - Fork 145
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
Add support to reset Windows passwords #495
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, done with first review pass, please address the linter and comments below.
Again, thank you so much for this! \o/
@dvanbrug PTAL. If anything is not clear - just let me know! :) |
@Temikus, thanks, I'll work through these and post another commit. |
@Temikus, as I was moving over to use the Sever model, I ran into a question about the following method.
Am I correct in understanding that it is only possible to get output from serial port 1 as that is the default for the request? The request method below allows for the ability to take a port.
As Linux instances also have up to 4 serial ports, should I file a separate issue and pull request for this? It would appear based on this documentation that there are definetly use cases where someone would want to be able to interact with ports 2-4. https://cloud.google.com/compute/docs/instances/interacting-with-serial-console Thanks! |
@Temikus I think I've addressed all of the comments and linter issues. Thank you for your patience as this has been my first in depth pass at building something in Ruby. Looking forward to your thoughts. |
@dvanbrug Acknowledged, thanks for making the changes! I should have a solid chunk of time in the next 2 days to properly review. Re: 3 - yes, this allowed to only read serial port 1 - you did the right thing by modifying it, thanks! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dvanbrug This is really good, thank you so much \o/
Just a couple of minor things, PTAL. We should be good to merge after addressing those.
@Temikus I've addressed all you comments. Thank you again for all the help with this! |
@dvanbrug I think I missed 2 of the earlier comments, so sorry about it. I've resolved all solved threads - can you take a look at the 3 open comments above^ Again, thank you so much for this! :) |
@Temikus Ok, I've addressed the three comments. One question, as I've had a lot of changes since the start of the PR, should I squash them all into a single commit? |
@dvanbrug Alright, this looks awesome, thank you so-so much for your contributions and patience :) I'll merge this after CI passes. |
Codecov Report
@@ Coverage Diff @@
## master #495 +/- ##
==========================================
+ Coverage 87.51% 87.88% +0.37%
==========================================
Files 311 341 +30
Lines 5167 5730 +563
==========================================
+ Hits 4522 5036 +514
- Misses 645 694 +49
Continue to review full report at Codecov.
|
bd22bd7
to
97ac311
Compare
@Temikus Ok, squashed :-). Thanks again for all your help with this! |
@dvanbrug All tests pass, just one tiiiny problem:
Can you fixup the argument in the method (it's still set to positional): Sorry for the hassle :) |
97ac311
to
158e665
Compare
@Temikus Doh! There we go, fixed up to use the new keyword parameter. |
@dvanbrug awesome, merged! I’ll start prepping the release next week. |
These are a few small changes to add the ability to reset windows passwords as described in #494.
The majority of the code was modified from the Python-based Google provided example: https://github.com/GoogleCloudPlatform/compute-image-windows/blob/master/examples/windows_auth_python_sample.py
I have implemented everything as a Request, though I am not sure if this would be better added to the Server model. My thoughts in favor of the Server model are that the request does not match extremely closely to an API, rather is uses the API to set the Metadata values on an instance. However, the downside to adding it to the Server model is that not all Windows images would have this functionality so it might be more complicated to adjust the Server model.
Resolves #494