Hi,

We found a bug in the code that manages AWS RDS.

To reproduce it:
1. Create a new MySQL RDS instance, set Multi-AZ = false.
2. Modify the instance to change the Multi-AZ value with Apply Immediately 
= false.
3. In AWS, the instance detail page shows: Multi-AZ = false, 
pending_modified_values.multi_az = true.
4. Calling fog's describe_db_instances returns: Multi-AZ = true, 
pending_modified_values = {}

The problem seems to be in 
fog-aws-0.1.2/lib/fog/aws/parsers/rds/db_parser.rb:

            when 'MultiAZ', 'AutoMinorVersionUpgrade', 'PubliclyAccessible'
              if value == 'false'
                @db_instance[name] = false
              else
                @db_instance[name] = true
              end

            ......

            when 'DBInstanceClass', 'EngineVersion', 'MasterUserPassword',
                'MultiAZ', 'Iops', 'AllocatedStorage'
              if @in_pending_modified_values
                @pending_modified_values[name] = value
              else
                @db_instance[name] = value
              end

Thanks a lot for the supports.

Best Regards,
Hannah Du

-- 
You received this message because you are subscribed to the Google Groups 
"ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to