flexera-public / right_aws

RightScale Amazon Web Services Ruby Gems
MIT License
449 stars 175 forks source link

error in rds_interface describe_db_snapshots #119

Open neillturner opened 12 years ago

neillturner commented 12 years ago

describe_db_snapshots method fails corrected as follows:

def describe_db_snapshots(params={}, &block) item, params = AwsUtils::split_items_and_params(params) params['DBSnapshotIdentifier'] = item if item params['DBInstanceIdentifier'] = params.delete(:instance_aws_id) unless params[:instance_aws_id].right_blank?

goes to:

def describe_db_snapshots(*params, &block)
  item, params = AwsUtils::split_items_and_params(params)
  params['DBSnapshotIdentifier'] = item.first unless item.first.right_blank?
  params['DBInstanceIdentifier'] = params[:instance_aws_id] unless params[:instance_aws_id].right_blank?
  params.delete(:instance_aws_id)
konstantin-dzreev commented 12 years ago

should be fixed: plz try out "development" branch