[one-users] onetemplate chown bug

Carlos Martín Sánchez cmartin at opennebula.org
Mon Aug 1 02:39:09 PDT 2011


Hi Rogier,

Thanks for the feedback, it is now fixed in master [1]

Regards.

[1] http://dev.opennebula.org/projects/opennebula/repository/revisions/85d8ef3e7c9af970a206e852510bbaf963c61541

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | cmartin at opennebula.org



On Sun, Jul 31, 2011 at 12:10 AM, Rogier Mars <rogier at fortytwo.nl> wrote:
> Hi,
>
> It looks like there is a small bug in the "onetemplate chown" command.
>
> According to the help included with the command, it should be possible to chown a template to a specific user and group in one command:
>
>   * chown <range|templateid_list> <userid> [<groupid>]
>        Changes the Template owner and group
>
> When I try to do that I get the following message:
>
> -bash-3.2$ onetemplate chown 4 0 1
> /usr/bin/onetemplate:151: undefined method `to_id' for 1:Fixnum (NoMethodError)
>        from /usr/lib/one/ruby/cli/command_parser.rb:172:in `call'
>        from /usr/lib/one/ruby/cli/command_parser.rb:172:in `run'
>        from /usr/lib/one/ruby/cli/command_parser.rb:79:in `initialize'
>        from /usr/bin/onetemplate:33:in `new'
>        from /usr/bin/onetemplate:33
> -bash-3.2$
>
> The individual commands chgrp and chown to change group and change owner of a template work fine.
>
> Best regards,
>
> rogier
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



More information about the Users mailing list