From 14eda0d125796a332c8ca9b5400af2afd162b1c3 Mon Sep 17 00:00:00 2001 From: Bruce Pennypacker Date: Wed, 12 Jun 2013 16:22:35 -0400 Subject: [PATCH] Added replication_source to the results --- library/cloud/rds | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/cloud/rds b/library/cloud/rds index 3e3ca70516..214011e318 100644 --- a/library/cloud/rds +++ b/library/cloud/rds @@ -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