diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-12 00:44:14 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-12 00:44:14 -0500 |
commit | 1f0a1dec1af315e6465e1c1dd503aa942a85b1f4 (patch) | |
tree | e8464d9f1e12d3366fa181a2c1dc95a68e817b9c /hscript/meta.cc | |
parent | 47558ea71d523fb71307d394be4bfad8da4664d8 (diff) | |
download | horizon-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.cc | 4 |
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; } |