Project

General

Profile

Actions

Feature #23998

open

hammer task progress should exit with a return code indicating task status

Added by Adam Ruzicka almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1319917

Description of problem:

As a user of hammer, I would like 'hammer task progress --id <uuid>' to immediately exit and with a return code indicating the status of a task.

Version-Release number of selected component (if applicable):
rubygem-hammer_cli_foreman_tasks-0.0.3.5-1.el7sat.noarch
rubygem-hammer_cli_katello-0.0.7.21-1.el7sat.noarch
rubygem-hammer_cli-0.1.4.13-1.el7sat.noarch
rubygem-hammer_cli_gutterball-0.0.1.3-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.15-1.el7sat.noarch
foreman-1.7.2.53-1.el7sat.noarch
katello-2.2.0.18-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. hammer task progress --id <uuid>

Actual results:

If task is in progress, a progress bar is shown. Otherwise a progress bar displaying 100% is shown.

Expected results:

1. A return code indicating task in progress
2. A return code indicating task completed
3. A return code indicating pause
4. A return code indicating an error state other than pause

Additional info:

Actions #1

Updated by Ivan Necas almost 6 years ago

  • Subject changed from hammer task progress should exist with a return code indicating task status to hammer task progress should exit with a return code indicating task status
Actions

Also available in: Atom PDF