From 049a735eb28cc30cf558be88bde942d7f207677f Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 8 Mar 2019 17:26:00 -0500 Subject: [PATCH] osdict: Prefix some errors messages with 'OS' Otherwise it's not entirely clear what we are refering too --- virtinst/osdict.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 081769765..033e227d5 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -521,7 +521,7 @@ class _OsVariant(object): if not treelist: raise RuntimeError( - _("'%s' does not have a URL location") % self.name) + _("OS '%s' does not have a URL location") % self.name) # Some distros have more than one URL for a specific architecture, # which is the case for Fedora and different variants (Server, @@ -532,14 +532,14 @@ class _OsVariant(object): return tree.get_url() raise RuntimeError( - _("'%s' does not have a URL location for the %s architecture") % + _("OS '%s' does not have a URL location for the %s architecture") % (self.name, arch)) def get_install_script(self, profile, media=None): def _get_install_script(script_list): if not script_list: raise RuntimeError( - _("'%s' does not support unattended installation.") % + _("OS '%s' does not support unattended installation.") % self.name) installscripts = [] @@ -551,8 +551,8 @@ class _OsVariant(object): if not installscripts: raise RuntimeError( - _("'%s' does not support unattended installation for the " - "'%s' profile. Available profiles: %s") % + _("OS '%s' does not support unattended installation for " + "the '%s' profile. Available profiles: %s") % (self.name, profile, ", ".join(list(profile_names)))) logging.debug("Install script found for profile '%s'", profile) @@ -570,7 +570,7 @@ class _OsVariant(object): if media: if not media.supports_installer_script(): raise RuntimeError( - _("'%s' used media does not support unattended " + _("OS '%s' media does not support unattended " "installation") % (self.name)) script_list = list(_OsinfoIter(media.get_install_script_list()))