Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Pending status to Queued #340

Merged
merged 1 commit into from
Jun 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add unit tests for networking.c port list functions. [#325](https://github.com/greenbone/gvm-libs/pull/325)
- Add gmp_start_task_ext_c. [#327](https://github.com/greenbone/gvm-libs/pull/327)
- Make log mutex visible. [#328](https://github.com/greenbone/gvm-libs/pull/328)
- Add new scan status PENDING. [#336](https://github.com/greenbone/gvm-libs/pull/336)
- Add new scan status QUEUED.
[#336](https://github.com/greenbone/gvm-libs/pull/336)
[#340](https://github.com/greenbone/gvm-libs/pull/340)
- Add gvm_routethrough which is used by Boreas alive detection module. [#339](https://github.com/greenbone/gvm-libs/pull/339)

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions osp/osp.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ osp_get_scan_status_ext (osp_connection_t *connection,
return status;
}

if (!strcmp (entity_attribute (child, "status"), "pending"))
status = OSP_SCAN_STATUS_PENDING;
if (!strcmp (entity_attribute (child, "status"), "queued"))
status = OSP_SCAN_STATUS_QUEUED;
else if (!strcmp (entity_attribute (child, "status"), "init"))
status = OSP_SCAN_STATUS_INIT;
else if (!strcmp (entity_attribute (child, "status"), "running"))
Expand Down
2 changes: 1 addition & 1 deletion osp/osp.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ typedef enum
OSP_SCAN_STATUS_RUNNING, /**< Running status. */
OSP_SCAN_STATUS_STOPPED, /**< Stopped status. */
OSP_SCAN_STATUS_FINISHED, /**< Finished status. */
OSP_SCAN_STATUS_PENDING, /**< Init pending. */
OSP_SCAN_STATUS_QUEUED, /**< Queued status */
} osp_scan_status_t;


Expand Down