Azure-sdk-for-python: App Configuration `client.list_configuration_settings()` unexpected keyword argument 'keys'

Created on 29 Jul 2020  路  2Comments  路  Source: Azure/azure-sdk-for-python

  • Package Name:
    azure.appconfiguration

  • Package Version:
    1.0.0

  • Operating System:
    Mac

  • Python Version:
    3.6.10

Describe the bug
Following the example for listing configuration settings (https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/appconfiguration/azure-appconfiguration#list-configuration-settings), the for-each loop gives the error

TypeError: request() got an unexpected keyword argument 'labels'

suggesting that it cannot be iterated as shown.

To Reproduce

# set up client
client = AzureAppConfigurationClient.from_connection_string(connection_str)

# example given in the documentation
filtered_listed = client.list_configuration_settings(
    labels=["*Labe*"], keys=["*Ke*"]
)
for item in filtered_listed:
    pass

Expected behavior
Be able to run through the for-each loop without erroring. Please show a working example of how this iterator should be used.

App Configuration Client customer-reported question

Most helpful comment

Thanks for reporting the issue.

We have a fix for it and it will be available in next release.

All 2 comments

Thanks for reporting the issue.

We have a fix for it and it will be available in next release.

Fixed in #12784

Was this page helpful?
0 / 5 - 0 ratings