Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
python-virtinst
virtinst-cdrom.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtinst-cdrom.diff of Package python-virtinst
Index: virtinst-0.600.2/virtinst/VirtualDisk.py =================================================================== --- virtinst-0.600.2.orig/virtinst/VirtualDisk.py +++ virtinst-0.600.2/virtinst/VirtualDisk.py @@ -1735,7 +1735,7 @@ class VirtualDisk(VirtualDevice): if maxnode > (26 * 26 * 26): raise RuntimeError("maxnode value is too high") - # Regular scanning + # Start cdrom at 'c' and skip 'c' for non-cdrom for i in range(1, maxnode + 1): gen_t = prefix @@ -1761,8 +1761,14 @@ class VirtualDisk(VirtualDevice): if gen_t in except_targets: continue if gen_t not in skip_targets: - self.target = gen_t - return self.target + if self.device != self.DEVICE_CDROM: + if i != ord('c') - ord('a'): + self.target = gen_t + return self.target + else: + if i >= ord('c') - ord('a'): + self.target = gen_t + return self.target # Check except_targets for any options for t in except_targets:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor