Due to newline at the end of `droplet_id` on line#39. Simple fix is to add `#chomp`: `droplet = @client.droplets.find(id: droplet_id.chomp)` Goes without saying that all methods that depend on inventory check fail.