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

Commit 6bf1725

Browse files
authoredApr 28, 2018
[RUNTIME] Fix code transmission in Ansible (#589)
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.

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎runtime/Ansible.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -488,11 +488,12 @@ def unpackage(data):
488488
state_queue.put([SM_COMMANDS.STUDENT_UPLOAD, []])
489489
if unpackaged_data.header == notification_pb2.Notification.GAMECODE_TRANSMISSION:
490490
state_queue.put([SM_COMMANDS.SET_VAL,
491-
["gamecodes_check", unpackaged_data.gamecode_solutions]])
491+
[list(unpackaged_data.gamecode_solutions),
492+
["gamecodes_check"]]])
492493
state_queue.put([SM_COMMANDS.SET_VAL,
493-
["gamecodes", unpackaged_data.gamecodes]])
494+
[list(unpackaged_data.gamecodes), ["gamecodes"]]])
494495
state_queue.put([SM_COMMANDS.SET_VAL,
495-
["rfids", unpackaged_data.rfids]])
496+
[list(unpackaged_data.rfids), ["rfids"]]])
496497

497498
except ConnectionResetError:
498499
bad_things_queue.put(

‎runtime/runtimeUtil.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class RUNTIME_CONFIG(Enum):
1717
TEST_OUTPUT_DIR = "test_outputs/"
1818
VERSION_MAJOR = 18
1919
VERSION_MINOR = 2
20-
VERSION_PATCH = 6
20+
VERSION_PATCH = 7
2121

2222
@unique
2323
class BAD_EVENTS(Enum):

0 commit comments

Comments
 (0)
This repository has been archived.