Add a connection kwarg to Page.from_json

if you don't reuse the connection when doing this, you lose your
authentication.
This commit is contained in:
Jeff Bradberry
2020-03-24 15:27:51 -04:00
parent cbc02dd607
commit 91135f638f
2 changed files with 4 additions and 4 deletions

View File

@@ -177,7 +177,7 @@ def parse_resource(client, skip_deprecated=False):
}
_filter = 'key, value'
formatted = format_response(
Page.from_json(response),
Page.from_json(response, connection=client.root.connection),
fmt=client.get_config('format'),
filter=_filter
)