Type and target are used for different subcommands:

   * saveas <vmid> <diskid> <img_name>
        [...]
        valid options: type

   * attachdisk <vmid>
        [...]
        valid options: file, image, target

So even if they have the same short argument they have different
meanings for saveas and attachdisk.

It is ok to send bug reports to the mailing list so we can discuss
them. You can also use the issue tracking at http://dev.opennebula.org

On Wed, Oct 10, 2012 at 11:05 AM, IJff, E.G. <bert.i...@vu.nl> wrote:
> Hi,
>
> I'm using OpenNebula at the Vrije Universiteit in Amsterdam, NL.
> When reading the "onevm help" I found that option "-t" seems to serve two
> purposes:
>
> $ onevm help | grep '.-t'
>      -t, --target type         Device where the image will be attached
>      -t, --type type           Type of the new Image
>
> in /cm/shared/package/OpenNebula/current/srv/cloud/one/bin/onevm the
> following code (lines 40..54) seems to be wrong:
>     TYPE={
>         :name => "type",
>         :short => "-t type",
>         :large => "--type type",
>         :format => String,
>         :description => "Type of the new Image"
>     }
>
>     TARGET={
>         :name => "target",
>         :short => "-t type",
>         :large => "--target type",
>         :format => String,
>         :description => "Device where the image will be attached"
>     }
>
> Best regards,
> Bert
>
> P.S. this is my first post to this list, so if I should report bugs
> somewhere else, please let me know.
>
> _______________________________________________
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfon...@opennebula.org | @OpenNebula
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to