summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-15 01:49:52 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-15 01:49:52 -0500
commit32cf169d5a1e2594c60956c61ea9169b84fcc61b (patch)
tree9245edbcca0538c2d33109280ddb0f71c53a8cd7 /tools
parentea9bfce0275e3e3f1b0fc04a099bb2deabb4e7ab (diff)
downloadhorizon-32cf169d5a1e2594c60956c61ea9169b84fcc61b.tar.gz
horizon-32cf169d5a1e2594c60956c61ea9169b84fcc61b.tar.bz2
horizon-32cf169d5a1e2594c60956c61ea9169b84fcc61b.tar.xz
horizon-32cf169d5a1e2594c60956c61ea9169b84fcc61b.zip
hscript-fromjson: Set network to true when an IP is given
Diffstat (limited to 'tools')
-rw-r--r--tools/hscript-fromjson/jsonconv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hscript-fromjson/jsonconv.cc b/tools/hscript-fromjson/jsonconv.cc
index 9ee1a86..7791136 100644
--- a/tools/hscript-fromjson/jsonconv.cc
+++ b/tools/hscript-fromjson/jsonconv.cc
@@ -50,7 +50,7 @@ bool parse_one_desc(json desc, std::ostream &out) {
out << "mount " << desc["root"].get<std::string>() << " /" << std::endl;
if(desc.find("netaddresses") != desc.end()) {
- out << "network false" << std::endl;
+ out << "network true" << std::endl;
for(const auto &addr : desc["netaddresses"]) {
ENSURE_KEY(addr, "interface");
ENSURE_KEY(addr, "addr-type");