Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
Chefstyle fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Feb 13, 2018
1 parent 528c6be commit c6fbedb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,3 @@
Lint/DuplicateCaseCondition:
Exclude:
- 'spec/chef/knife/linode_server_create_spec.rb'
12 changes: 5 additions & 7 deletions lib/chef/knife/linode_server_delete.rb
Expand Up @@ -51,13 +51,11 @@ class LinodeServerDelete < Chef::Knife
# the user is already making their intent known. It is not
# necessary to make them confirm two more times.
def destroy_item(klass, name, type_name)
begin
object = klass.load(name)
object.destroy
ui.warn("Deleted #{type_name} #{name}")
rescue Net::HTTPServerException
ui.warn("Could not find a #{type_name} named #{name} to delete!")
end
object = klass.load(name)
object.destroy
ui.warn("Deleted #{type_name} #{name}")
rescue Net::HTTPServerException
ui.warn("Could not find a #{type_name} named #{name} to delete!")
end

def run
Expand Down

0 comments on commit c6fbedb

Please sign in to comment.