devicedisk: Improve error message when max IDE devs exceeded (bz 1466238)

https://bugzilla.redhat.com/show_bug.cgi?id=1466238
This commit is contained in:
Cole Robinson 2017-07-10 19:55:57 -04:00
parent f41844f3f2
commit c46218af3c
1 changed files with 2 additions and 2 deletions

View File

@ -1032,7 +1032,7 @@ class VirtualDisk(VirtualDevice):
raise ValueError(_("Controller number %d for disk of type %s has "
"no empty slot to use" % (pref_ctrl, prefix)))
else:
raise ValueError(_("Only %s disks of type '%s' are supported"
% (maxnode, prefix)))
raise ValueError(_("Only %s disks for bus '%s' are supported"
% (maxnode, self.bus)))
VirtualDisk.register_type()