Skip to content

Commit e2537a6

Browse files
committed
minor change
1 parent a420f8c commit e2537a6

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

create_managed_endpoint.py

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -267,22 +267,6 @@ def main():
267267
# ingest Hosted Zone name passed as argument
268268
hostedzonename = args.hosted_zone_name
269269

270-
# process region name if passed.
271-
# If region name argument was not provided, use default region.
272-
# If region name was passed then, validate it's in the correct format. If region name is malformed, quit, else proceed.
273-
# thisregion = args.region
274-
275-
# if (thisregion == ''):
276-
# thissession = boto3.session.Session()
277-
# thisregion = thissession.region_name
278-
# else:
279-
# regionregex = re.compile(r"^us-[a-z]*-[0-9]{1}")
280-
# regionmatch = re.search(regionregex, thisregion)
281-
282-
# if not regionmatch:
283-
# print ("Please provide a valid region name. For example: us-east-1")
284-
# sys.exit(1)
285-
286270
# Get the list of regions
287271
regions = args.region_list.split(',')
288272

@@ -299,9 +283,6 @@ def main():
299283
if not regionmatch:
300284
print ("Please provide a valid region name in region list. For example: us-east-1. Incorrect value", region)
301285
sys.exit(1)
302-
303-
304-
305286

306287
# If the user didn't pass hosted zone in the expected format, fix it by adding a '.' at the end
307288
strlen = len(hostedzonename)
@@ -324,8 +305,8 @@ def main():
324305

325306
for region in regions:
326307

327-
print("Processing region", region)
328-
print ("\n")
308+
print("\nProcessing region", region, ":")
309+
329310

330311
# Parse values from the cluster-cname-pair argument. Separate clustername and cname entries.
331312
for val in vals:

0 commit comments

Comments
 (0)