Skip to content

Commit 98ae245

Browse files
committed
fix(k8sworker): formatting
Signed-off-by: Chris Snow <[email protected]>
1 parent fc8df31 commit 98ae245

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

hpecp/cli/k8sworker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ def create_with_ssh_key(
123123
)
124124
sys.exit(1)
125125

126-
tags_parsed=[]
126+
tags_parsed = []
127127
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(","))]
129129

130130
worker_id = base.get_client().k8s_worker.create_with_ssh_key(
131131
ip=ip,

tests/k8s_worker_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ def test_key_or_keycontent_provided(
173173
self.assertEqual(cm.exception.code, 1)
174174

175175
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+
)
177179

178180
self.assertEqual(self.out.getvalue(), "", "stdout should be empty")
179181

@@ -197,7 +199,9 @@ def test_key_and_keycontent_provided(
197199
self.assertEqual(cm.exception.code, 1)
198200

199201
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+
)
201205

202206
self.assertEqual(self.out.getvalue(), "", "stdout should be empty")
203207

0 commit comments

Comments
 (0)