diff --git a/lib/ansible/modules/cloud/amazon/route53_health_check.py b/lib/ansible/modules/cloud/amazon/route53_health_check.py index e97ffb653a1..779a3f9550c 100644 --- a/lib/ansible/modules/cloud/amazon/route53_health_check.py +++ b/lib/ansible/modules/cloud/amazon/route53_health_check.py @@ -169,7 +169,7 @@ def find_health_check(conn, wanted): def to_health_check(config): return HealthCheck( config.get('IPAddress'), - config.get('Port'), + int(config.get('Port')), config.get('Type'), config.get('ResourcePath'), fqdn=config.get('FullyQualifiedDomainName'), @@ -352,7 +352,7 @@ def main(): changed = True else: diff = health_check_diff(existing_config, wanted_config) - if not diff: + if diff: action = "update" update_health_check(conn, existing_check.Id, int(existing_check.HealthCheckVersion), wanted_config) changed = True