Skip to content

Commit

Permalink
Change test from .nil? to .blank?
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Jul 29, 2018
1 parent 457e958 commit bf019e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def main
service_template = task.send("#{transformation_hook}_ansible_playbook_service_template")
return if service_template.nil?
target_host = target_host(task, transformation_hook)
return if target_host.nil?
return if target_host.blank?
service_dialog_options = { :hosts => target_host.ipaddresses.first }
service_request = @handle.execute(:create_service_provision_request, service_template, service_dialog_options)
task.set_option("#{transformation_hook}_ansible_playbook_service_request_id".to_sym, service_request.id)
Expand Down

0 comments on commit bf019e1

Please sign in to comment.