Skip to content

Commit 80f3287

Browse files
authored
Fix kueuectl calls in xpk info (#1000)
fix kueuectl calls in xpk info
1 parent c355307 commit 80f3287

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/xpk/commands/info.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ def run_kueuectl_list_localqueue(args: Namespace) -> str:
219219
command = 'kubectl kueue list localqueue -o json'
220220
if args.namespace != '':
221221
command += f' --namespace {args.namespace}'
222-
return_code, val = run_command_for_value(command, 'list localqueue')
222+
return_code, val = run_command_for_value(
223+
command, 'list localqueue', hide_error=True
224+
)
223225

224226
if return_code != 0:
225227
xpk_print(f'Cluster info request returned ERROR {return_code}')
@@ -235,7 +237,9 @@ def run_kueuectl_list_clusterqueue() -> str:
235237
"""
236238
command = 'kubectl kueue list clusterqueue -o json'
237239

238-
return_code, val = run_command_for_value(command, 'list clusterqueue')
240+
return_code, val = run_command_for_value(
241+
command, 'list clusterqueue', hide_error=True
242+
)
239243

240244
if return_code != 0:
241245
xpk_print(f'Cluster info request returned ERROR {return_code}')

0 commit comments

Comments
 (0)