Skip to content

fixes #32179 - Return code 404 instead of 500 missing subnet#103

Merged
lzap merged 1 commit intotheforeman:masterfrom
domitea:32179_fix
Mar 29, 2021
Merged

fixes #32179 - Return code 404 instead of 500 missing subnet#103
lzap merged 1 commit intotheforeman:masterfrom
domitea:32179_fix

Conversation

@domitea
Copy link
Contributor

@domitea domitea commented Mar 23, 2021

Bootdisk should return code 404 for missing subnet

end

def subnet_not_found
not_found ("Subnet not found by id '%s'") % params[:id]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subnet with id %s not found

sounds probably little bit better. Tests fail tho.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd still prefer a cleaner message, but whatever.

@lzap
Copy link
Member

lzap commented Mar 29, 2021

There are (irrelevant) rubocop failures, can you fix them please?

end
end
end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These three files do not seem to be related, was this added by mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the mistake - that's happen when you're working on the bootdisk improvements at many fronts :/

Bootdisk should return code 404 for missing subnet
Copy link
Member

@lzap lzap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am good, thanks.

end

def subnet_not_found
not_found ("Subnet not found by id '%s'") % params[:id]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd still prefer a cleaner message, but whatever.

@lzap lzap merged commit b9f4256 into theforeman:master Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants