#1378 API getLastHostUpdate returns None for non-existing build
Closed: Dropped 5 years ago by mikem. Opened 5 years ago by mfilip.

Steps to reproduce

getLastHostUpdate(12345)

Current output

None

Expected output

Host does not exist: 12345

There is no way how to distinguish between non-existing host and not yet active host. Both return None. There should be implemented parameter strict. API getLastHostUpdate with strict=True should returns an error for non-existing host.


User is responsible for giving the right value here. In our code it is used only in two places and in both host's existence is verified before. I would close this as NOTABUG. @mikem?

There are many places where Koji returns None when asked for data about a nonexistent entry. For the most part, at least with informational calls, Koji only raises an error when the call has a strict option that is set to True. That is not the case here.

I don't see a point in changing the behavior of this call.

Metadata Update from @mikem:
- Issue close_status updated to: Dropped
- Issue status updated to: Closed (was: Open)

5 years ago

There is no way how to distinguish between non-existing host and not yet active host.

This call is not intended to be used to validate the existence of a host. Use getHost for that.

Login to comment on this ticket.

Metadata