Revision c70d5593 src/cli/one_helper/onegroup_helper.rb
src/cli/one_helper/onegroup_helper.rb | ||
---|---|---|
158 | 158 |
|
159 | 159 |
group_hash = group.to_hash |
160 | 160 |
|
161 |
OneQuotaHelper.format_quota(group_hash['GROUP']) |
|
161 |
system = System.new(@client) |
|
162 |
default_quotas = system.get_group_quotas() |
|
163 |
|
|
164 |
if OpenNebula::is_error?(default_quotas) |
|
165 |
# TODO: cannot do |
|
166 |
# return -1, default_quotas.message |
|
167 |
# because OneHelper::show_resource ignores this method's output |
|
168 |
|
|
169 |
default_quotas = nil |
|
170 |
end |
|
171 |
|
|
172 |
helper = OneQuotaHelper.new |
|
173 |
helper.format_quota(group_hash['GROUP'], default_quotas) |
|
162 | 174 |
end |
163 | 175 |
end |
Also available in: Unified diff