Skip to content

Commit

Permalink
Indentation fail (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
kke committed Aug 10, 2017
1 parent 2963680 commit 2433aec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/kontena/plugin/digital_ocean/prompts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def ask_ssh_key(do_token)
manager = Kontena::Machine::DigitalOcean::SshKeyManager.new(do_token)

if self.ssh_key
puts self.ssh_key.inspect
public_key = File.read(self.ssh_key).strip
else
keys = manager.list
Expand All @@ -41,11 +40,10 @@ def ask_ssh_key(do_token)
q.validate /^ssh-rsa \S+ \S+$/
end
else
public_key = key.public_key
return key.id
end

manager.find_or_create_by_public_key(public_key).id
end
manager.find_or_create_by_public_key(public_key).id
end

def ask_do_token
Expand Down

0 comments on commit 2433aec

Please sign in to comment.