Revision c70d5593 src/cli/one_helper/oneuser_helper.rb

View differences:

src/cli/one_helper/oneuser_helper.rb
265 265

  
266 266
        user_hash = user.to_hash
267 267

  
268
        OneQuotaHelper.format_quota(user_hash['USER'])
268
        system = System.new(@client)
269
        default_quotas = system.get_user_quotas()
270

  
271
        if OpenNebula::is_error?(default_quotas)
272
            # TODO: cannot do 
273
            # return -1, default_quotas.message
274
            # because OneHelper::show_resource ignores this method's output
275

  
276
            default_quotas = nil
277
        end
278

  
279
        helper = OneQuotaHelper.new
280
        helper.format_quota(user_hash['USER'], default_quotas)
269 281
    end
270 282
end

Also available in: Unified diff