File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -319,13 +319,10 @@ def _generate_create_dict(
319319 {"device" : "0" , "diskImage" : {"capacity" : disks [0 ]}}
320320 ]
321321
322- # disk 1 is reservered for swap
323- # XXX: enumerate(iterator, start=0) was added in 2.6. work around
324- # for 2.5 by adding 2 to the enumerated value
325- for dev_id , disk in enumerate (disks [1 :]):
322+ for dev_id , disk in enumerate (disks [1 :], start = 2 ):
326323 data ['blockDevices' ].append (
327324 {
328- "device" : str (dev_id + 2 ),
325+ "device" : str (dev_id ),
329326 "diskImage" : {"capacity" : disk }
330327 }
331328 )
Original file line number Diff line number Diff line change 6565 ],
6666 },
6767 package_data = {
68- 'SoftLayer' : ['tests/fixtures/*' ],
68+ 'SoftLayer' : ['tests/fixtures/*.conf ' ],
6969 },
7070 test_suite = 'nose.collector' ,
7171 install_requires = requires ,
You can’t perform that action at this time.
0 commit comments