summaryrefslogtreecommitdiff
path: root/hscript/script.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 09:48:49 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 09:48:49 -0500
commiteaad2886ee1c2fff25f473e4ab933e53ef959beb (patch)
tree9c2ca8cb00b9ddcdc2aa14199c7dba24ecf85240 /hscript/script.cc
parent6a2bbf81ae81a409565f55a825d330cd63772087 (diff)
downloadhorizon-eaad2886ee1c2fff25f473e4ab933e53ef959beb.tar.gz
horizon-eaad2886ee1c2fff25f473e4ab933e53ef959beb.tar.bz2
horizon-eaad2886ee1c2fff25f473e4ab933e53ef959beb.tar.xz
horizon-eaad2886ee1c2fff25f473e4ab933e53ef959beb.zip
hscript: Add hostname execution
Diffstat (limited to 'hscript/script.cc')
-rw-r--r--hscript/script.cc10
1 files changed, 9 insertions, 1 deletions
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;
}