1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

correct engine version param on rds replicas

This commit is contained in:
Adam Reese 2014-12-19 10:24:26 -08:00 committed by Michelle Noorali & Josh Lane
parent da2a4adc30
commit e60026492d

View file

@ -33,29 +33,29 @@ module Fog
source = self.data[:servers][source_identifier]
data = {
'AllocatedStorage' => source['AllocatedStorage'],
'AutoMinorVersionUpgrade' => options.key?('AutoMinorVersionUpgrade') ? options['AutoMinorVersionUpgrade'] : true,
'AvailabilityZone' => options['AvailabilityZone'],
'DBInstanceClass' => options['DBInstanceClass'] || 'db.m1.small',
'DBInstanceIdentifier' => instance_identifier,
'DBInstanceStatus' => 'creating',
'DBName' => source['DBName'],
'DBParameterGroups' => source['DBParameterGroups'],
'DBSecurityGroups' => source['DBSecurityGroups'],
'Endpoint' => {},
'Engine' => source['Engine'],
'EngineVersion' => options['EngineVersion'] || '5.5.12',
'InstanceCreateTime' => nil,
'Iops' => source['Iops'],
'LatestRestorableTime' => nil,
'LicenseModel' => 'general-public-license',
'MasterUsername' => source['MasterUsername'],
'MultiAZ' => false,
'PendingModifiedValues' => {},
'PreferredBackupWindow'=> '08:00-08:30',
'PreferredMaintenanceWindow'=> "mon:04:30-mon:05:00",
'ReadReplicaDBInstanceIdentifiers'=> [],
'ReadReplicaSourceDBInstanceIdentifier'=> source_identifier
'AllocatedStorage' => source['AllocatedStorage'],
'AutoMinorVersionUpgrade' => options.key?('AutoMinorVersionUpgrade') ? options['AutoMinorVersionUpgrade'] : true,
'AvailabilityZone' => options['AvailabilityZone'],
'DBInstanceClass' => options['DBInstanceClass'] || 'db.m1.small',
'DBInstanceIdentifier' => instance_identifier,
'DBInstanceStatus' => 'creating',
'DBName' => source['DBName'],
'DBParameterGroups' => source['DBParameterGroups'],
'DBSecurityGroups' => source['DBSecurityGroups'],
'Endpoint' => {},
'Engine' => source['Engine'],
'EngineVersion' => source['EngineVersion'],
'InstanceCreateTime' => nil,
'Iops' => source['Iops'],
'LatestRestorableTime' => nil,
'LicenseModel' => 'general-public-license',
'MasterUsername' => source['MasterUsername'],
'MultiAZ' => false,
'PendingModifiedValues' => {},
'PreferredBackupWindow' => '08:00-08:30',
'PreferredMaintenanceWindow' => "mon:04:30-mon:05:00",
'ReadReplicaDBInstanceIdentifiers' => [],
'ReadReplicaSourceDBInstanceIdentifier' => source_identifier
}
self.data[:servers][instance_identifier] = data
self.data[:servers][source_identifier]['ReadReplicaDBInstanceIdentifiers'] << instance_identifier