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
Sle 15 ga registration popup #402
Conversation
"Without these media only a minimum system is available\n" \ | ||
"in this installation.") % | ||
{ media_name: "SLE-15-Packages", download_url: "https://download.suse.com" } | ||
if media_name && !media_name.empty? && |
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.
The nil
check is actually not needed, ProductFeatures.GetStringFeature
returns empty string if it is not found, see here. Just remove the media_name && download_url
checks and add a comment describing that so it is clear.
_("A full system can be installed using the\n" \ | ||
"%{media_name} media from %{download_url}.") % | ||
{ media_name: media_name, download_url: download_url } | ||
elsif media_name && !media_name.empty? |
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'm thinking if handling of the other cases is needed for the future. It feels a bit like over engineering...
I think the additional medium will always have some name (even if a stupid one like DVD2
), you need to be able to somehow tell the customers to use an additional medium and that's hard without a name. 😁
Maybe we could simply require defining both and drop these extra conditions. On the other hand this extra code is pretty small and straightforward so I'll leave the decision up to you. 😃
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 even do not have a testcase for that corner cases :-) --> removed.
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
No description provided.