Skip to content

Commit

Permalink
base64.b64encode method expects bytes as an argument
Browse files Browse the repository at this point in the history
Signed-off-by: Siteshwar Vashisht <[email protected]>
  • Loading branch information
siteshwar committed Mar 14, 2024
1 parent 337b16d commit 4ef7ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resalloc_agent_spawner/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def handle_ticket(self, ticket_id):
# We know there's self._redis initialized by parent class so we don't
# create yet another connection.
redis_dict = self._redis.hgetall(redis_key)
ticket_data = base64.b64encode(redis_dict["data"])
ticket_data = base64.b64encode(bytes(redis_dict["data"], 'utf-8'))

if redis_dict["state"] == "PREPARING":
if self.cmd_take(redis_dict["group_id"], ticket_data):
Expand Down

0 comments on commit 4ef7ad9

Please sign in to comment.