L #-: fix minor linting issues (#3812)

This commit is contained in:
Alejandro Huertas Herrero authored and Tino Vázquez committed 2019-10-04 10:41:03 +02:00
1 parent acc565039b
commit f90144f5ef
4 files changed
+14 -5

No files matched your search

+8 -3
View File
@@ -237,7 +237,8 @@ def show_service(client, args, options)
puts Kernel.format(str, 'STRATEGY', template['deployment'])
puts Kernel.format(str,
'SERVICE STATE', Service.state_str(template['state']))
'SERVICE STATE',
Service.state_str(template['state']))
if template['shutdown_action']
puts Kernel.format(str, 'SHUTDOWN', template['shutdown_action'])
end
@@ -261,9 +262,13 @@ def show_service(client, args, options)
template['roles'].each do |role|
CLIHelper.print_header("ROLE #{role['name']}", false)
puts Kernel.format(str, 'ROLE STATE', Role.state_str(role['state']))
puts Kernel.format(str,
'ROLE STATE',
Role.state_str(role['state']))
if role['parents']
puts Kernel.format(str, 'PARENTS', role['parents'].join(', '))
puts Kernel.format(str,
'PARENTS',
role['parents'].join(', '))
end
puts Kernel.format(str, 'VM TEMPLATE', role['vm_template'])
puts Kernel.format(str, 'CARDINALITY', role['cardinality'])
+2 -2
View File
@@ -434,9 +434,9 @@ CommandParser::CmdParser.new(ARGV) do
Shows orphans vnets (i.e vnets not referenced in any template).
EOT
command :orphans, show_desc do
command :orphans, show_desc do
puts helper.check_orphans
return 0
return 0
end
end