Skip to content

Commit

Permalink
fix: handle invalid characters in zlogin for alma9
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic authored Oct 11, 2024
1 parent 9256d12 commit a9d5425
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/vagrant-zones/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1253,11 +1253,10 @@ def zloginboot(uii)
uii.info(I18n.t('vagrant_zones.automated-zbootunlock'))
end

if !rsp.empty? && rsp[-1].match(/#{bstring}/)
sleep(15)
zlogin_write.printf("\n")
break
end
next unless !rsp.empty? && rsp[-1].match(/#{bstring}/)
sleep(15)
zlogin_write.printf("\n")
break
end

if zlogin_read.expect(/#{alcheck}/)
Expand All @@ -1282,7 +1281,6 @@ def zloginboot(uii)
end
end
end


def natloginboot(uii, metrics, interrupted)
metrics ||= {}
Expand Down

0 comments on commit a9d5425

Please sign in to comment.