Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Jan 27, 2021
1 parent 3020e33 commit 953722d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gems/pending/util/miq-ipmi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ def run_command(ipmi_cmd, *args)
command_args[nil] = args unless args.empty?

begin
return AwesomeSpawn.run!("ipmitool", :params => command_args, :combined_output => true).output
AwesomeSpawn.run!("ipmitool", :params => command_args, :combined_output => true).output
rescue AwesomeSpawn::CommandResultError => err
return err.to_s if continue_on_error == true && err.exit_status == 1

raise "Command:<#{err.command_line}> exited with status:<#{err.exit_status}>\nCommand output:\n#{err}"
end
end
Expand Down

0 comments on commit 953722d

Please sign in to comment.