Skip to content

Commit eb1d328

Browse files
shierroPelingan, Theodoro
andauthored
fix: Fix issue on failing create action (#622)
This fixes the issue when sometimes the server returns `'Message: Failed to complete #create action: [undefined method include? for nil:NilClass in the specified region us-east-1. Please check this AMI is available in this region.]` This issue was introduced from [here](v3.17.0...v3.17.1#diff-5f36235c5a4a35dba130d480e2175640f7762d7ae859ad98efa704c4db646b4fR567) Co-authored-by: Pelingan, Theodoro <tpelingan@bethel.jw.org>
1 parent 178742a commit eb1d328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/kitchen/driver/ec2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def wait_until_ready(server, state)
586586
# supplied, try to fetch it from the AWS instance
587587
fetch_windows_admin_password(server, state)
588588
else
589-
output = server.console_output.output
589+
output = server.console_output.output || ''
590590
unless output.nil?
591591
output = Base64.decode64(output)
592592
debug "Console output: --- \n#{output}"

0 commit comments

Comments
 (0)