-
Notifications
You must be signed in to change notification settings - Fork 46
custom VNC password changes #193
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
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.
LGTM!
builder/qemu/step_configure_vnc.go
Outdated
@@ -28,7 +28,21 @@ type stepConfigureVNC struct { | |||
l *net.Listener | |||
} | |||
|
|||
func VNCPassword() string { | |||
type vncpwd struct{} |
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.
type vncpwd struct{} | |
type vncPassword struct{} |
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.
NIT
builder/qemu/step_configure_vnc.go
Outdated
func VNCPassword() string { | ||
type vncpwd struct{} | ||
|
||
func (p *vncpwd) VNCPassword(c *Config) (string, error) { |
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.
func (p *vncpwd) VNCPassword(c *Config) (string, error) { | |
func (p *vncpwd) getVNCPassword(c *Config) (string, error) { |
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.
Probably we can rename the method to this. Or any other better naming convention you would like
Description:
Ability to set the custom VNC password. So the user can set their own VNC password required to connect to VM through VNC. This way do not have to go through the debug log to look at the set password.
Added the unit test cases and tested through the sample packer templates.
Closes #186