[CA-120443] Multiple 'DVD drive 0' entries on one host

This commit is contained in:
Stephen Turner 2014-04-14 16:44:14 +01:00
parent 5a20317be0
commit 5ef42be767
3 changed files with 13 additions and 4 deletions

View File

@ -5790,6 +5790,15 @@ namespace XenAdmin {
}
}
/// <summary>
/// Looks up a localized string similar to DVD drive on {0}.
/// </summary>
public static string CD_DRIVE {
get {
return ResourceManager.GetString("CD_DRIVE", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Change....
/// </summary>

View File

@ -2109,6 +2109,9 @@ Deleting this bond will disrupt traffic through the secondary interface on the b
{1}</value>
</data>
<data name="CD_DRIVE" xml:space="preserve">
<value>DVD drive on {0}</value>
</data>
<data name="CHANGE" xml:space="preserve">
<value>Change...</value>
</data>

View File

@ -53,10 +53,7 @@ namespace XenAPI
{
Host host = sr.GetStorageHost();
if (sr.Physical && host != null)
{
//TODO: we need to find a way to number the DVDs
return string.Format(Messages.ISOCOMBOBOX_CD_DRIVE, 0, host.Name);
}
return string.Format(Messages.CD_DRIVE, host.Name);
}
}