-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
machines: disable pxe booting when a user selected session connection #12393
Conversation
Needs to rebase to master since #12367 changed tests names |
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.
Thanks!
@@ -596,7 +599,7 @@ class CreateVmModal extends React.Component { | |||
this.setState({ [key]: value }); | |||
if (this.state.sourceType == PXE_SOURCE) { | |||
// If the installation source mode is PXE refresh the list of available networks | |||
this.onValueChanged('sourceType', PXE_SOURCE); | |||
this.onValueChanged('sourceType', LOCAL_INSTALL_MEDIA_SOURCE); |
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.
I don't understand this change.
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.
Ups, I forgot '&& value == LIBVIRT_SESSION_CONNECTION'
Basically when a user switches back to session we need to reset the choice of installation source if before they had chosen PXE, since the selection would not be valid any more.
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.
I see. So the comment should rather say "When changing to session connection, reset media source"?
#12388 introduced almost (but not quite) the same change to Select, so this needs rebasing now. |
6cb38f9
to
53ac1c4
Compare
<Select.SelectEntry title={connectionName == 'session' ? _("Network Boot is available only when using System connection") : null} | ||
disabled={connectionName == 'session'} | ||
data={PXE_SOURCE} | ||
key={PXE_SOURCE}>{_("Network Boot (PXE)")}</Select.SelectEntry> } |
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.
Missing line break here? (But not important enough to re-push, as long as eslint is happy)
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.
Done
@@ -596,7 +599,7 @@ class CreateVmModal extends React.Component { | |||
this.setState({ [key]: value }); | |||
if (this.state.sourceType == PXE_SOURCE) { | |||
// If the installation source mode is PXE refresh the list of available networks | |||
this.onValueChanged('sourceType', PXE_SOURCE); | |||
this.onValueChanged('sourceType', LOCAL_INSTALL_MEDIA_SOURCE); |
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.
I see. So the comment should rather say "When changing to session connection, reset media source"?
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.
Thanks!
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1731803