Skip to content

Commit

Permalink
Add missing .to_i to convert return value from the api to a number
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Gabriel committed Oct 4, 2019
1 parent b6808a2 commit 0889fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion katello-attach-subscription
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ def vdcupdate()
# if the field is present check if it's a valid entry or not, if not exit with error
if facts['results'][sys['name']]['cpu::cpu_socket(s)'].to_i > 0
# set sys_socket to the value of cpu::cpu_socket(s)
sys_socket = facts['results'][sys['name']]['cpu::cpu_socket(s)']
sys_socket = facts['results'][sys['name']]['cpu::cpu_socket(s)'].to_i
if @options[:debug]
puts " DEBUG: Setting sys_socket to #{sys_socket} for #{sys["name"]}"
end
Expand Down

0 comments on commit 0889fbc

Please sign in to comment.