From af24aa1cdfed9fb84bb8240b5ff685b1b11ea1a0 Mon Sep 17 00:00:00 2001 From: Colin Johnson Date: Thu, 1 Aug 2013 00:12:25 +0000 Subject: [PATCH] Update route53-migrate-zone.py bigfix - error message not written to stderr. --- route53-migrate-zone/route53-migrate-zone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route53-migrate-zone/route53-migrate-zone.py b/route53-migrate-zone/route53-migrate-zone.py index cdc5f76..1222f84 100755 --- a/route53-migrate-zone/route53-migrate-zone.py +++ b/route53-migrate-zone/route53-migrate-zone.py @@ -18,8 +18,8 @@ def commit_record_changeset(destination_zone_record_changeset): try: destination_zone_record_changeset.commit() except boto.route53.exception.DNSServerError, error: - sys.stdout.write("An error occured when attempting to commit records to the zone \"" + destination_zone_name + "\"\n") - sys.stdout.write("The error message given was: " + error.error_message + ".\n") + sys.stderr.write("An error occured when attempting to commit records to the zone \"" + destination_zone_name + "\"\n") + sys.stderr.write("The error message given was: " + error.error_message + ".\n") exit(69)