Skip to content

Commit

Permalink
Don't use identity_attr or name_attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaswth committed Mar 29, 2014
1 parent bfd45a0 commit 799842e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions libraries/provider_rightscale_backup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class RightscaleBackup < Chef::Provider
# making instance-facing RightScale API calls.
#
def load_current_resource
@new_resource.nickname(@new_resource.name) unless @new_resource.nickname
@current_resource = Chef::Resource::RightscaleBackup.new(@new_resource.nickname)
node.set['rightscale_backup'] ||= {}

Expand Down
3 changes: 0 additions & 3 deletions libraries/resource_rightscale_backup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class Resource
# A Chef resource for managing volume backups in RightScale environment.
#
class RightscaleBackup < Chef::Resource
identity_attr :name

# Initializes rightscale_backup resource.
#
# @param name [String] name of the resource.
Expand Down Expand Up @@ -53,7 +51,6 @@ def nickname(arg = nil)
:name,
arg,
:kind_of => String,
:name_attribute => true,
)
end

Expand Down

0 comments on commit 799842e

Please sign in to comment.