Skip to content

Commit

Permalink
Skip boot devices in get_volume_attachments.
Browse files Browse the repository at this point in the history
  • Loading branch information
arangamani committed Apr 1, 2014
1 parent f9b8e02 commit 4f1dba6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/cookbooks/test-rightscale_backup/libraries/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def get_volumes(filter = {})
#
def get_volume_attachments(filter = {})
filter.merge!({:instance_href => api_client.get_instance.href})
api_client.volume_attachments.index(:filter => build_filters(filter))
attachments = api_client.volume_attachments.index(:filter => build_filters(filter))
# Skip the boot device attachments if there were any
attachments.reject { |attachment| attachment.href =~ /\/disks\/boot-/ }
end

# Checks if the backup was created in the cloud.
Expand Down

0 comments on commit 4f1dba6

Please sign in to comment.