Revision fa96d8a7 src/oca/ruby/OpenNebula/User.rb

View differences:

src/oca/ruby/OpenNebula/User.rb
8 8
        USER_METHODS = {
9 9
            :info     => "user.info",
10 10
            :allocate => "user.allocate",
11
            :delete   => "user.delete"
11
            :delete   => "user.delete",
12
            :passwd   => "user.passwd"
12 13
        }
13 14

  
14 15
        # Creates a User description with just its identifier
......
51 52
        def delete()
52 53
            super(USER_METHODS[:delete])
53 54
        end
55

  
56
        def passwd(password)
57
            return Error.new('ID not defined') if !@pe_id
58

  
59
            rc = @client.call(USER_METHODS[:passwd], @pe_id, password)
60
            rc = nil if !OpenNebula.is_error?(rc)
61

  
62
            return rc
63
        end
64

  
54 65
    end
55 66
end

Also available in: Unified diff