Skip to content

Commit 91a6417

Browse files
author
Bjarne Schröder
committed
Dremio: Adding missing messages for successful user and instance deletion.
1 parent b449c60 commit 91a6417

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/dremio/dremio.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func main() {
8989
os.Exit(1)
9090
}
9191
dremioUserId := createDremioUserResp.Id
92-
fmt.Printf("[Dremio] Created Dremio User with ID: %s\n", dremioUserId)
92+
fmt.Printf("[Dremio] Created Dremio user with ID: %s\n", dremioUserId)
9393

9494
_, err = wait.CreateDremioUserWaitHandler(ctx, dremioClient.DefaultAPI, projectId, region, dremioId, dremioUserId).WaitWithContext(ctx)
9595
if err != nil {
@@ -121,6 +121,7 @@ func main() {
121121
fmt.Fprintf(os.Stderr, "[Dremio] Error when waiting for user deletion: %v\n", err)
122122
os.Exit(1)
123123
}
124+
fmt.Printf("[Dremio] Deleted Dremio user with ID: %s\n", dremioUserId)
124125

125126
// Delete a Dremio instance
126127
err = dremioClient.DefaultAPI.DeleteDremioInstance(ctx, projectId, region, dremioId).Execute()
@@ -133,4 +134,5 @@ func main() {
133134
fmt.Fprintf(os.Stderr, "[Dremio] Error when waiting for deletion: %v\n", err)
134135
os.Exit(1)
135136
}
137+
fmt.Printf("[Dremio] Deleted Dremio instance with ID: %s\n", dremioId)
136138
}

0 commit comments

Comments
 (0)