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

fix(update-server): Fix hash in SSH key upload confirmation response #3947

Merged
merged 1 commit into from
Aug 27, 2019
Merged

fix(update-server): Fix hash in SSH key upload confirmation response #3947

merged 1 commit into from
Aug 27, 2019

Conversation

SyntaxColoring
Copy link
Contributor

overview

When you send a POST request to upload a new SSH key, the robot responds with a message Added key {hashval}. Presumably the actual hash was intended to be substituted there, but the message was accidentally written as a regular string instead of an f-string.

changelog

  • Trivial 1-character change to fix the f-string.

The `f` was forgotten from an f-string, causing the "Added key {hashval}" response to an SSH key upload to include the literal string "{hashval}".
@mcous mcous requested a review from sfoster1 August 27, 2019 13:35
@mcous mcous added api Affects the `api` project fix PR fixes a bug ready for review labels Aug 27, 2019
@codecov
Copy link

codecov bot commented Aug 27, 2019

Codecov Report

Merging #3947 into edge will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             edge    #3947   +/-   ##
=======================================
  Coverage   57.53%   57.53%           
=======================================
  Files         829      829           
  Lines       23455    23455           
=======================================
  Hits        13496    13496           
  Misses       9959     9959
Impacted Files Coverage Δ
...te-server/otupdate/buildroot/ssh_key_management.py 28.91% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b2c008...649687d. Read the comment docs.

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@Laura-Danielle
Copy link
Contributor

Awesome catch @SyntaxColoring

@mcous mcous merged commit b070205 into Opentrons:edge Aug 27, 2019
@mcous mcous mentioned this pull request Sep 9, 2019
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Affects the `api` project fix PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants