rds2 model fixes.
* Add the endpoint data to the to_json function. * Remove the DBInstance key from the to_json template.
This commit is contained in:
parent
2dde94c9be
commit
df036fe207
@ -158,7 +158,7 @@ class Database(object):
|
||||
return database
|
||||
|
||||
def to_json(self):
|
||||
template = Template(""""DBInstance": {
|
||||
template = Template("""{
|
||||
"AllocatedStorage": 10,
|
||||
"AutoMinorVersionUpgrade": "{{ database.auto_minor_version_upgrade }}",
|
||||
"AvailabilityZone": "{{ database.availability_zone }}",
|
||||
@ -222,7 +222,10 @@ class Database(object):
|
||||
"PreferredMaintenanceWindow": "{{ database.preferred_maintenance_window }}",
|
||||
"PubliclyAccessible": "{{ database.publicly_accessible }}",
|
||||
"AllocatedStorage": "{{ database.allocated_storage }}",
|
||||
"Endpoint": null,
|
||||
"Endpoint": {
|
||||
"Address": "{{ database.address }}",
|
||||
"Port": "{{ database.port }}"
|
||||
},
|
||||
"InstanceCreateTime": null,
|
||||
"Iops": null,
|
||||
"ReadReplicaDBInstanceIdentifiers": [{%- for replica in database.replicas -%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user