From f085e59b21f579c85ba69bd45ef379e8fb80255b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 7 Mar 2021 15:44:25 +0200 Subject: chore: delete some code that was commented out --- src/bin/vmadm.rs | 46 +++------------------------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/src/bin/vmadm.rs b/src/bin/vmadm.rs index 8fe5540..9b16966 100644 --- a/src/bin/vmadm.rs +++ b/src/bin/vmadm.rs @@ -1,18 +1,11 @@ use anyhow::Context; use directories_next::ProjectDirs; -use vmadm::cmd; -use vmadm::config::Configuration; -use vmadm::spec::Specification; -//use bytesize::GIB; use log::debug; -//use std::fs; use std::path::{Path, PathBuf}; -//use std::thread; use structopt::StructOpt; -//use vmadm::cloudinit::CloudInitConfig; -//use vmadm::image::VirtualMachineImage; -//use vmadm::install::{virt_install, VirtInstallArgs}; -//use vmadm::spec::Specification; +use vmadm::cmd; +use vmadm::config::Configuration; +use vmadm::spec::Specification; const QUALIFIER: &str = ""; const ORG: &str = ""; @@ -122,36 +115,3 @@ fn config_filename(common: &CommonOptions) -> PathBuf { } } } - -// fn cloud_init(spec: &Path, dirname: &Path) -> anyhow::Result<()> { -// info!("generating cloud-init configuration"); - -// debug!("reading specification from {}", spec.display()); -// let spec = fs::read(spec)?; -// let spec: Specification = serde_yaml::from_slice(&spec)?; -// debug!("spec:\n{:#?}", spec); - -// info!("creating cloud-init config"); -// let init = CloudInitConfig::from(&spec)?; - -// debug!("creating directory {}", dirname.display()); -// std::fs::create_dir_all(dirname)?; -// init.create_dir(dirname)?; - -// Ok(()) -// } - -// fn cloud_init_iso(spec: &Path, iso: &Path) -> anyhow::Result<()> { -// info!("generating cloud-init ISO"); - -// debug!("reading specification from {}", spec.display()); -// let spec = fs::read(spec)?; -// let spec: Specification = serde_yaml::from_slice(&spec)?; -// debug!("spec:\n{:#?}", spec); - -// info!("creating cloud-init config"); -// let init = CloudInitConfig::from(&spec)?; -// init.create_iso(iso)?; - -// Ok(()) -// } -- cgit v1.2.1