diff options
author | Chen Hanxiao <chenhanxiao@cn.fujitsu.com> | 2014-01-27 10:22:08 +0800 |
---|---|---|
committer | Chen Hanxiao <chenhanxiao@cn.fujitsu.com> | 2014-01-27 10:22:08 +0800 |
commit | 4b72c5f2a0f016d1ad4dcd191f19dcd52cc98224 (patch) | |
tree | 021b5b6e647c04498b7773db7d43c4f4f0a3d95d | |
parent | 708a2737cfd34f32c912ca3aaf2a29283e3a05c3 (diff) | |
download | virt-manager-4b72c5f2a0f016d1ad4dcd191f19dcd52cc98224.tar.gz |
virtinst: clearer error message when disks upper limits reached
We set upper limits for virtio, hd ... disks in virtinst.
So we should let users know this.
Improve error message suggested by:
https://bugzilla.redhat.com/show_bug.cgi?id=822331
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
-rw-r--r-- | virtinst/devicedisk.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py index 795b9214..d78e2ccd 100644 --- a/virtinst/devicedisk.py +++ b/virtinst/devicedisk.py @@ -897,6 +897,7 @@ class VirtualDisk(VirtualDevice): if ret: self.target = ret return ret - raise ValueError(_("No more space for disks of type '%s'" % prefix)) + raise ValueError(_("Only %s disks of type '%s' are supported" + % (maxnode, prefix))) VirtualDisk.register_type() |