Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
[RUNTIME] Fix code transmission in Ansible (#589)
Browse files Browse the repository at this point in the history
This is a hotfix for a Shepherd issue. We passed parameters into
StateManager in the wrong order, resulting in a key being stored in the
wrong place.
  • Loading branch information
baby-bell authored Apr 28, 2018
1 parent 1b716e0 commit 6bf1725
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions runtime/Ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,12 @@ def unpackage(data):
state_queue.put([SM_COMMANDS.STUDENT_UPLOAD, []])
if unpackaged_data.header == notification_pb2.Notification.GAMECODE_TRANSMISSION:
state_queue.put([SM_COMMANDS.SET_VAL,
["gamecodes_check", unpackaged_data.gamecode_solutions]])
[list(unpackaged_data.gamecode_solutions),
["gamecodes_check"]]])
state_queue.put([SM_COMMANDS.SET_VAL,
["gamecodes", unpackaged_data.gamecodes]])
[list(unpackaged_data.gamecodes), ["gamecodes"]]])
state_queue.put([SM_COMMANDS.SET_VAL,
["rfids", unpackaged_data.rfids]])
[list(unpackaged_data.rfids), ["rfids"]]])

except ConnectionResetError:
bad_things_queue.put(
Expand Down
2 changes: 1 addition & 1 deletion runtime/runtimeUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RUNTIME_CONFIG(Enum):
TEST_OUTPUT_DIR = "test_outputs/"
VERSION_MAJOR = 18
VERSION_MINOR = 2
VERSION_PATCH = 6
VERSION_PATCH = 7

@unique
class BAD_EVENTS(Enum):
Expand Down

0 comments on commit 6bf1725

Please sign in to comment.