So here is my command, but it dosen't work:
cobbler system edit --virt-file-size="50 25" --name="docs"

Here is the error:

local variable 'inum' referenced before assignment
  File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 83, in
main
    rc = BootCLI().run(sys.argv)

  File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 61, in
run
    return self.loader.run(args)

  File "/usr/lib/python2.5/site-packages/cobbler/commands.py", line 122, in
run
    return fn.run()

  File "/usr/lib/python2.5/site-packages/cobbler/modules/cli_system.py",
line 165, in run
    obj.set_virt_file_size(self.options.virt_file_size)

  File "/usr/lib/python2.5/site-packages/cobbler/item_system.py", line 540,
in set_virt_file_size
    return utils.set_virt_file_size(self,num)

  File "/usr/lib/python2.5/site-packages/cobbler/utils.py", line 1164, in
set_virt_file_size
    raise CX(_("invalid virt file size (%s)" % inum))


I am on cobbler 1.6.6 fedora 10 64bit

On Mon, Jul 6, 2009 at 10:57 AM, Thomas S Hatch <[email protected]> wrote:

> HA!  Thats it, I was using commas!  Thanks!
> is that documented anywhere?  I will put documenting it on my list of
> contributions I have to make once I am done with this big job at work.
>
>
> On Mon, Jul 6, 2009 at 10:57 AM, Michael DeHaan <[email protected]>wrote:
>
>>  On 07/06/2009 12:56 PM, Michael DeHaan wrote:
>>
>> On 07/06/2009 12:45 PM, Tom Brown wrote:
>>
>>  I am trying to provision vms with multiple virtual hard drives and to
>> no avail, I found some info online which lead me to believe it was
>> possible, but it didn't seem to work.  How might I go about doing
>> this? (if I can...)
>>
>>
>>
>>  what exactly are you trying to achieve?
>> _______________________________________________
>> cobbler mailing 
>> [email protected]https://fedorahosted.org/mailman/listinfo/cobbler
>>
>>
>> --virt-file-size=20,20
>>
>> This will indicate you want two hard drives with 20 GB size each.  (Unlike
>> sizes are also supported)
>>
>> You can also list --virt-path seperated by commas, but is generally not
>> needed as you'll likely want to put them in the same place.
>>
>>
>> Correction:
>>
>> --virt-file-size="20 20".
>>
>> Cobbler has standardized on *not* using commas.
>>
>>
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>
>>
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to