mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
L #-: fix minor linting issues (#3812)
This commit is contained in:
1 parent
acc565039b
commit
f90144f5ef
4 files changed
+14
-5
No files matched your search
+8
-3
@@ -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
@@ -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
|
||||
Reference in new issue
Block a user