Skip to content

Commit a31f817

Browse files
committed
0.8.1: check init script output
Signed-off-by: Gyuho Lee <[email protected]>
1 parent a449c40 commit a31f817

File tree

1 file changed

+6
-0
lines changed
  • avalancheup-aws/src/apply

1 file changed

+6
-0
lines changed

avalancheup-aws/src/apply/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,12 @@ pub async fn execute(log_level: &str, spec_file_path: &str, skip_prompt: bool) -
13171317
};
13181318
println!("\n{}\n", ssh_command.to_string());
13191319

1320+
let output = ssh_command
1321+
.run("tail -10 /var/log/cloud-init-output.log")
1322+
.unwrap();
1323+
println!("init script std output:\n{}\n", output.stdout);
1324+
println!("init script std err:\n{}\n", output.stderr);
1325+
13201326
ssh_commands.push(ssh_command);
13211327
}
13221328
println!();

0 commit comments

Comments
 (0)