File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -106,15 +106,14 @@ def get_user_input(env):
106106 endpoint_type = env .input (
107107 'Endpoint (public|private|custom)' , default = 'public' )
108108 endpoint_type = endpoint_type .lower ()
109- if endpoint_type is None :
110- endpoint_url = SoftLayer .API_PUBLIC_ENDPOINT
111- if endpoint_type == 'public' :
112- endpoint_url = SoftLayer .API_PUBLIC_ENDPOINT
113- elif endpoint_type == 'private' :
114- endpoint_url = SoftLayer .API_PRIVATE_ENDPOINT
115- elif endpoint_type == 'custom' :
109+
110+ if endpoint_type == 'custom' :
116111 endpoint_url = env .input ('Endpoint URL' ,
117112 default = defaults ['endpoint_url' ])
113+ elif endpoint_type == 'private' :
114+ endpoint_url = SoftLayer .API_PRIVATE_ENDPOINT
115+ else :
116+ endpoint_url = SoftLayer .API_PUBLIC_ENDPOINT
118117
119118 # Ask for timeout
120119 timeout = env .input ('Timeout' , default = defaults ['timeout' ] or 0 )
You can’t perform that action at this time.
0 commit comments