Browse Source

Aggressively undeprecate legitimate method calls

Samuel Cassiba 1 year ago
parent
commit
50b07b156a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      libraries/openstack_project.rb

+ 2
- 2
libraries/openstack_project.rb View File

@@ -36,9 +36,9 @@ module OpenstackclientCookbook
36 36
     action :delete do
37 37
       project = new_resource.connection.projects.find { |p| p.name == new_resource.project_name }
38 38
       if project
39
-        new_resource.project.destroy
39
+        project.destroy
40 40
       else
41
-        log "Project with name: \"#{new_resource.project_name}\" doesn't exist"
41
+        log "Project with name: \"#{project_name}\" doesn't exist"
42 42
       end
43 43
     end
44 44
   end

Loading…
Cancel
Save