lib/chef/provider/aws_rds_subnet_group.rb
# Given an existing subnet group, return an array of update descriptions
# representing the updates that need to be made.
#
# If no updates are needed, an empty array is returned.
#
Given an existing subnet group, return an array of update descriptions
representing the updates that need to be made.

If no updates are needed, an empty array is returned.
Given an existing subnet group return an array of update descriptions representing the updates that need to be made . If no updates are needed an empty array is returned .
def required_updates(subnet_group)
    ret = []
    if desired_options[:db_subnet_group_description] != subnet_group[:db_subnet_group_description]
      ret << "  set group description to #{desired_options[:db_subnet_group_description]}"
    end
    unless xor_array(desired_options[:subnet_ids], subnet_ids(subnet_group[:subnets])).empty?
      ret << "  set subnets to #{desired_options[:subnet_ids]}"
    end
    unless desired_options[:aws_tags].nil? || desired_options[:aws_tags].empty?
      Chef::Log.warn "Updating tags for RDS subnet groups is not supported."
    end
    ret.unshift("update RDS subnet group #{new_resource.name} in #{region}") unless ret.empty?
    ret
  end
def required_updates ( subnet_group ) ret = [ ] if desired_options [ :db_subnet_group_description ] != subnet_group [ :db_subnet_group_description ] ret << "  set group description to #{desired_options[:db_subnet_group_description]}" end unless xor_array ( desired_options [ :subnet_ids ] , subnet_ids ( subnet_group [ :subnets ] ) ) . empty? ret << "  set subnets to #{desired_options[:subnet_ids]}" end unless desired_options [ :aws_tags ] . nil? || desired_options [ :aws_tags ] . empty? Chef :: Log . warn "Updating tags for RDS subnet groups is not supported." end ret . unshift ( "update RDS subnet group #{new_resource.name} in #{region}" ) unless ret . empty? ret end
Given an existing subnet group, return an array of update descriptions
representing the updates that need to be made.
Given an existing subnet group return an array of update descriptions representing the updates that need to be made .
# modify_db_subnet_group doesn't support the tags key according to # http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/RDS/Client.html#modify_db_subnet_group-instance_method
subnet_group
<not_specific>