1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Added replication_source to the results

This commit is contained in:
Bruce Pennypacker 2013-06-12 16:22:35 -04:00
parent 1ef29a3654
commit 14eda0d125

View file

@ -511,7 +511,12 @@ def main():
d["endpoint"] = None
d["port"] = None
# ReadReplicaSourceDBInstanceIdentifier may or may not exist
try:
d["replication_source"] = my_inst.ReadReplicaSourceDBInstanceIdentifier
except Exception, e:
d["replication_source"] = None
module.exit_json(changed=True, instance=d)
# this is magic, see lib/ansible/module_common.py