Skip to content

Commit

Permalink
Resume test now passes
Browse files Browse the repository at this point in the history
  • Loading branch information
cholcombe973 committed Aug 15, 2018
1 parent f822ca1 commit e3068c4
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 145 deletions.
16 changes: 9 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ use std::io::Result as IOResult;
use std::io::{Error, ErrorKind, Read};
use std::path::{Path, PathBuf};

use self::test_disk::State;
use clap::{App, Arg};
use create_support_ticket::{create_support_ticket, ticket_resolved};
use helpers::host_information::Host;
use simplelog::{CombinedLogger, Config, TermLogger, WriteLogger};
use slack_hook::{PayloadBuilder, Slack};
use self::test_disk::State;

#[derive(Clone, Debug, Deserialize)]
pub struct ConfigSettings {
Expand Down Expand Up @@ -211,6 +211,11 @@ fn check_for_failed_disks(config_dir: &str, simulate: bool) -> Result<(), String
debug!("Device is already in the repair queue");
}
}
// Handle the ones that ended up stuck in Fail
} else if state.state == State::Fail {
//
}else {
// The rest should be State::Good ?
}
}
Err(e) => {
Expand Down Expand Up @@ -301,20 +306,17 @@ fn main() {
.long("configdir")
.takes_value(true)
.required(false),
)
.arg(
).arg(
Arg::with_name("simulate")
.help("Log messages but take no action")
.long("simulate")
.required(false),
)
.arg(
).arg(
Arg::with_name("v")
.short("v")
.multiple(true)
.help("Sets the level of verbosity"),
)
.get_matches();
).get_matches();
let level = match matches.occurrences_of("v") {
0 => log::LevelFilter::Info, //default
1 => log::LevelFilter::Debug,
Expand Down
Loading

0 comments on commit e3068c4

Please sign in to comment.