Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion awscli_plugin_endpoint/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import warnings

ENDPOINT_URL = 'endpoint_url'
Expand All @@ -21,7 +22,8 @@ def get_endpoint_from_profile(profile, command):
endpoint = None
if command in profile:
if ENDPOINT_URL in profile[command]:
endpoint = profile[command][ENDPOINT_URL]
endpoint_url_tempalte = profile[command][ENDPOINT_URL]
endpoint = os.path.expandvars(endpoint_url_tempalte)
return endpoint

def set_endpoint_from_profile(parsed_args, **kwargs):
Expand Down