From bd31835c064b6162695c99d0dea3b5d82c4522f7 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Mon, 15 Jan 2024 23:59:07 +0530 Subject: [PATCH] updated read func Signed-off-by: nikhil2611 --- omnibus/resources/chef-workstation/rpm/signing.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnibus/resources/chef-workstation/rpm/signing.erb b/omnibus/resources/chef-workstation/rpm/signing.erb index 07658ab0e..8e1754404 100644 --- a/omnibus/resources/chef-workstation/rpm/signing.erb +++ b/omnibus/resources/chef-workstation/rpm/signing.erb @@ -14,7 +14,7 @@ puts rpm_cmd puts "------rpm_cmd is:-----#{rpm_cmd}" PTY.spawn(rpm_cmd) do |r, w, pid| puts "r is -------#{r}" - prompt = r.read(19) + prompt = r.read() # match the expected prompt exactly, since that's the only way we know if # something went wrong.