mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
CLI formatting
This commit is contained in:
1 parent
a7f9464288
commit
9cce43ca97
1 file changed
+4
-4
@@ -213,18 +213,18 @@ def show_service(client, args, options)
|
||||
|
||||
puts str % ["ROLE STATE", Role.state_str(role['state'])]
|
||||
puts str % ["PARENTS", role['parents'].join(', ')] if role['parents']
|
||||
puts str % ["CARNIDALITY", role['cardinality']]
|
||||
puts str % ["VM TEMPLATE", role['vm_template']]
|
||||
puts str % ["CARNIDALITY", role['cardinality']]
|
||||
puts str % ["MIN VMS", role['min_vms']] if role['min_vms']
|
||||
puts str % ["MAX VMS", role['max_vms']] if role['max_vms']
|
||||
puts str % ["SHUTDOWN", role['shutdown_action']] if role['shutdown_action']
|
||||
|
||||
puts "NODES INFORMATION"
|
||||
NODE_TABLE.show(role['nodes'])
|
||||
|
||||
if !role['min_vms'].nil? || !role['max_vms'].nil? || !role['elasticity_policies'].nil?
|
||||
if !role['elasticity_policies'].nil?
|
||||
puts
|
||||
puts "ELASTICITY RULES"
|
||||
puts str % ["MIN VMS", role['min_vms']] if role['min_vms']
|
||||
puts str % ["MAX VMS", role['max_vms']] if role['max_vms']
|
||||
puts str % ["COOLDOWN", "#{role['cooldown']}s"] if role['cooldown']
|
||||
|
||||
if role['elasticity_policies']
|
||||
|
||||
Reference in new issue
Block a user