From eaad2886ee1c2fff25f473e4ab933e53ef959beb Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 12 Oct 2019 09:48:49 -0500 Subject: hscript: Add hostname execution --- hscript/script.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'hscript/script.cc') diff --git a/hscript/script.cc b/hscript/script.cc index a31fbc3..0583a3c 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -387,11 +387,19 @@ bool Script::execute() const { output_step_end("validate"); if(!success) { /* Runner.Execute.Verify.Failure */ - output_error("validator", "The HorizonScript failed validation.", + output_error("validator", "The HorizonScript failed validation", "Check the output from the validator."); return false; } + output_step_start("metadata"); + if(!this->internal->hostname->execute(opts) || + !this->internal->rootpw->execute(opts)) { + output_error("metadata", "The HorizonScript failed to execute", + "Check the log file for more details."); + return false; + } + output_step_end("metadata"); return false; } -- cgit v1.2.3-70-g09d2