Skip to content

Commit f03c66e

Browse files
author
lijianguo
committed
chore(helmbroker): fixup deprovision
1 parent bcc5647 commit f03c66e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

rootfs/helmbroker/tasks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,13 @@ def deprovision(instance_id: str):
159159
data["last_operation"]["state"] = OperationState.IN_PROGRESS.value
160160
data["last_operation"]["description"] = "deprovision %s in progress at %s" % (instance_id, time.time()) # noqa
161161
dump_instance_meta(instance_id, data)
162-
command(
162+
status, output = command(
163163
"helm",
164164
"uninstall",
165165
data["details"]["context"]["instance_name"],
166166
"--namespace",
167167
data["details"]["context"]["namespace"],
168168
)
169-
status, output = command("kubectl", "delete", "ns", data["details"]["context"]["namespace"]) # noqa
170169
if status != 0:
171170
data["last_operation"]["state"] = OperationState.FAILED.value
172171
data["last_operation"]["description"] = "deprovision error:\n%s" % output # noqa

0 commit comments

Comments
 (0)