[one-users] onetemplate chown bug
Rogier Mars
rogier at fortytwo.nl
Sat Jul 30 15:10:52 PDT 2011
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
More information about the Users
mailing list