lib/cloudstack-cli/commands/user.rb in cloudstack-cli-1.5.13 vs lib/cloudstack-cli/commands/user.rb in cloudstack-cli-1.6.0

- old
+ new

@@ -15,14 +15,17 @@ when :yaml puts({users: users}.to_yaml) when :json puts JSON.pretty_generate(users: users) else - table = [["Account", "Type", "Name", "Email", "State", "Domain"]] + table = [%w(Account Type Name Username Email State Domain)] users.each do |user| table << [ - user['account'], Account::TYPES[user['accounttype']], "#{user['firstname']} #{user['lastname']}", - user['email'], user['state'], user['domain'] + user['account'], + Account::TYPES[user['accounttype']], + "#{user['firstname']} #{user['lastname']}", + user['username'], user['email'], + user['state'], user['domain'] ] end print_table table say "Total number of users: #{users.size}" end