Revision cfc965e0

View differences:

src/cli/oneuser
143 143
    user=OpenNebula::User.new(
144 144
        OpenNebula::User.build_xml, get_one_client)
145 145
    if ops[:no_hash]
146
        password = ARGV[1]
146
        password = ARGV[1].gsub(/\s/, '')
147 147
    else
148 148
        password = Digest::SHA1.hexdigest(ARGV[1])
149 149
    end
......
203 203
    user=OpenNebula::User.new_with_id(user_id, get_one_client)
204 204

  
205 205
    if ops[:no_hash]
206
        password = ARGV[1]
206
        password = ARGV[1].gsub(/\s/, '')
207 207
    else
208 208
        password = Digest::SHA1.hexdigest(ARGV[1])
209 209
    end

Also available in: Unified diff