mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug in oneimage chown
This commit is contained in:
parent
e87052af2e
commit
33fe05472f
@ -184,7 +184,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
EOT
|
||||
|
||||
command :chown, chown_desc, [:range, :imageid_list], :userid, [:groupid,nil] do
|
||||
gid = args[2].nil? ? -1 : args[2].to_id
|
||||
gid = args[2].nil? ? -1 : args[2].to_i
|
||||
helper.perform_actions(args[0],options,"Owner/Group changed") do |image|
|
||||
image.chown(args[1].to_i, gid)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user