Skip to content

Commit 4a1a2c2

Browse files
authored
fix(instance): user_data cast content to bytes (#1164)
1 parent d2448b5 commit 4a1a2c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scaleway/scaleway/instance/v1/custom_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional, Dict
1+
from typing import Optional, Dict, cast
22

33
from requests import Response
44

@@ -92,8 +92,7 @@ def get_all_server_user_data(
9292
value = InstanceUtilsV1API.get_server_user_data(
9393
self, server_id=param_server_id, key=key
9494
)
95-
print("value: ", value)
96-
user_data[key] = value.content
95+
user_data[key] = cast(bytes, value.content)
9796

9897
return GetAllServerUserDataResponse(user_data=user_data)
9998

0 commit comments

Comments
 (0)