Revision b0ddfd38 src/cli/oneuser

View differences:

src/cli/oneuser
124 124
* passwd (Changes the given user's password)
125 125
    oneuser passwd <id> password
126 126

  
127
* chgrp (Changes the User group)
128
    oneuser chgrp <id> <group_id>
127 129

  
128 130
Information Columns:
129 131

  
......
265 267
        puts
266 268
    end
267 269

  
270
when "chgrp"
271
    check_parameters("chgrp", 2)
272

  
273
    obj_id = get_user_id(ARGV[0])
274
    new_gid  = ARGV[1].to_i
275

  
276
    obj = OpenNebula::User.new_with_id(obj_id, get_one_client)
277

  
278
    result = obj.chgrp( new_gid )
279
    if is_successful?(result)
280
        puts "User group changed" if ops[:verbose]
281
    end
282

  
268 283
when "list"
269 284
    if !ops[:xml]
270 285
        uplist=UPShow.new

Also available in: Unified diff