File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ def create_with_ssh_key(
123
123
)
124
124
sys .exit (1 )
125
125
126
- tags_parsed = []
126
+ tags_parsed = []
127
127
if tags is not None :
128
- tags_parsed = [dict (item .split (":" ) for item in tags .split (',' ))]
128
+ tags_parsed = [dict (item .split (":" ) for item in tags .split ("," ))]
129
129
130
130
worker_id = base .get_client ().k8s_worker .create_with_ssh_key (
131
131
ip = ip ,
Original file line number Diff line number Diff line change @@ -173,7 +173,9 @@ def test_key_or_keycontent_provided(
173
173
self .assertEqual (cm .exception .code , 1 )
174
174
175
175
actual_err = self .err .getvalue ().strip ()
176
- expected_err = "At least one of ssh_key or ssh_key_file must be provided"
176
+ expected_err = (
177
+ "At least one of ssh_key or ssh_key_file must be provided"
178
+ )
177
179
178
180
self .assertEqual (self .out .getvalue (), "" , "stdout should be empty" )
179
181
@@ -197,7 +199,9 @@ def test_key_and_keycontent_provided(
197
199
self .assertEqual (cm .exception .code , 1 )
198
200
199
201
actual_err = self .err .getvalue ().strip ()
200
- expected_err = "Either ssh_key or ssh_key_file must be provided, but not both."
202
+ expected_err = (
203
+ "Either ssh_key or ssh_key_file must be provided, but not both."
204
+ )
201
205
202
206
self .assertEqual (self .out .getvalue (), "" , "stdout should be empty" )
203
207
You can’t perform that action at this time.
0 commit comments