Skip to content

Commit

Permalink
cargo: update update-ssh-keys dependency
Browse files Browse the repository at this point in the history
now that update-ssh-keys has been merged into the upstream
coreos/update-ssh-keys repository, we have to point there for the latest
updates. also, we pin ourselves to a tag in that repo so that our
dependencies are more predictable.
  • Loading branch information
sdemos committed Oct 18, 2017
1 parent ee379c6 commit 823bc3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ reqwest = "0.7"
hyper = "0.11"
error-chain = { version = "0.11", default-features = false }
openssh-keys = "0.1"
update-ssh-keys = { git = "https://github.com/sdemos/update-ssh-keys-rs" }
update-ssh-keys = { git = "https://github.com/coreos/update-ssh-keys", tag = "v0.1.0" }
ipnetwork = "0.12"
clippy = { version = "*", optional = true }
hostname = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl Metadata {
// find the ssh keys user and open their ssh authorized keys directory
let user = users::get_user_by_name(&ssh_keys_user)
.ok_or_else(|| format!("could not find user with username {:?}", ssh_keys_user))?;
let mut authorized_keys_dir = AuthorizedKeys::open(user, true)
let mut authorized_keys_dir = AuthorizedKeys::open(user, true, None)
.chain_err(|| format!("failed to open authorzied keys directory for user '{}'", ssh_keys_user))?;

// add the ssh keys to the directory
Expand Down

0 comments on commit 823bc3e

Please sign in to comment.