Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
fix: fixes a droplet action API
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Jun 5, 2015
1 parent 4e032f2 commit b5ac3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/request/builder/droplets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ impl<'t> RequestBuilder<'t, response::Droplet> {
}
}
pub fn action(mut self, id: &str) -> RequestBuilder<'t, response::Action> {
// GET: "https://api.digitalocean.com/v2/droplets/$ID/kernels"
self.url.push('/');
// GET: "https://api.digitalocean.com/v2/droplets/$ID/actions/$ACTION_ID"
self.url.push_str("/actions/");
self.url.push_str(id);
RequestBuilder::new(self.auth, self.url)
}
Expand Down

0 comments on commit b5ac3ba

Please sign in to comment.