Skip to content

Commit

Permalink
swap name/ip
Browse files Browse the repository at this point in the history
  • Loading branch information
daschr committed Sep 13, 2023
1 parent b357a95 commit ade272a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ impl ContainerLister {
}
}

println!("hostentries: {:?}", &hostentries);

Ok(hostentries)
}
}
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() -> Result<(), IoError> {
let container_entries: Vec<String> = match lister.fetch() {
Ok(v) => v
.iter()
.map(|x| format!("{}\t{}", x.name, x.addr))
.map(|x| format!("{}\t{}", x.addr, x.name))
.collect(),
Err(e) => {
eprintln!("Could not fetch containers: {:?}", e);
Expand Down

0 comments on commit ade272a

Please sign in to comment.