diff --git a/src/cli/oneflow b/src/cli/oneflow index 8b77e119e1..8b3e42ba2d 100755 --- a/src/cli/oneflow +++ b/src/cli/oneflow @@ -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']) diff --git a/src/cli/onevnet b/src/cli/onevnet index 1611b75c59..5168aa368f 100755 --- a/src/cli/onevnet +++ b/src/cli/onevnet @@ -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 diff --git a/src/onedb/fsck/quotas.rb b/src/onedb/fsck/quotas.rb index 5a47c79327..c146fa78a4 100644 --- a/src/onedb/fsck/quotas.rb +++ b/src/onedb/fsck/quotas.rb @@ -1,4 +1,5 @@ # Quotas module +# rubocop:disable Style/FormatStringToken module OneDBFsck # Check and fix quotas @@ -521,5 +522,6 @@ module OneDBFsck new_elem.add_child(leases_el).content = leases_used.to_s end end + # rubocop:enable Style/FormatStringToken end diff --git a/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine_monitor/vm_monitor.rb b/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine_monitor/vm_monitor.rb index 5143fcf8c3..3970fa39c0 100644 --- a/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine_monitor/vm_monitor.rb +++ b/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine_monitor/vm_monitor.rb @@ -38,6 +38,7 @@ module VirtualMachineMonitor # monitor function used when VMM poll action is called # rubocop:disable Naming/VariableName + # rubocop:disable Style/FormatStringToken def monitor_poll_vm reset_monitor @@ -363,6 +364,7 @@ module VirtualMachineMonitor (write_kbpersec * 1024 * refresh_rate).to_i end # rubocop:enable Naming/VariableName + # rubocop:enable Style/FormatStringToken # Generates a OpenNebula IM Driver valid string with the monitor info def info