Skip to content

Commit 9a1e7fb

Browse files
Update list_volumes.py
updated deprecated functions in code
1 parent d2bc8ac commit 9a1e7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rest_api/list_volumes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def parse_args() -> argparse.Namespace:
8787
format="[%(asctime)s] [%(levelname)5s] [%(module)s:%(lineno)s] %(message)s",
8888
)
8989
ARGS = parse_args()
90-
base64string = base64.encodestring(
90+
base64string = base64.encodebytes(
9191
('%s:%s' %
9292
(ARGS.api_user, ARGS.api_pass)).encode()).decode().replace('\n', '')
9393

0 commit comments

Comments
 (0)