[AppConfig] Missing quotes for "If-Match" etag header #13276
Labels
App Configuration
Azure.ApplicationModel.Configuration
Client
This issue points to a problem in the data-plane of the library.
azure-sdk-for-python/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py
Lines 501 to 549 in d334964
While trying to use the lock/unlock API like this:
kv = azconfig_client.set_read_only(configurationSetting, if_match=configurationSetting.etag)
I noticed that the If-Match etag request header is not properly quoted while constructing the request here.
Instead of passing
if_match
argument withset_read_only
, it would be better if we could just pass thematch_condition
argument like in all other methods in this module (for example: here, quotations are handled properly).The text was updated successfully, but these errors were encountered: