summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 00:44:14 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 00:44:14 -0500
commit1f0a1dec1af315e6465e1c1dd503aa942a85b1f4 (patch)
treee8464d9f1e12d3366fa181a2c1dc95a68e817b9c /hscript/meta.cc
parent47558ea71d523fb71307d394be4bfad8da4664d8 (diff)
downloadhorizon-1f0a1dec1af315e6465e1c1dd503aa942a85b1f4.tar.gz
horizon-1f0a1dec1af315e6465e1c1dd503aa942a85b1f4.tar.bz2
horizon-1f0a1dec1af315e6465e1c1dd503aa942a85b1f4.tar.xz
horizon-1f0a1dec1af315e6465e1c1dd503aa942a85b1f4.zip
hscript: Pass opts to all validate()s, implement 'mount' validation
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index 4d75819..84e026e 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -29,12 +29,12 @@ Key *Hostname::parseFromData(const std::string data, int lineno, int *errors,
return new Hostname(lineno, data);
}
-bool Hostname::validate() const {
+bool Hostname::validate(ScriptOptions) const {
/* Validate that the name is a valid machine or DNS name */
return false;
}
-bool Hostname::execute() const {
+bool Hostname::execute(ScriptOptions) const {
/* Write the hostname to /etc/hostname in the target environment. */
return false;
}