This commit fixes a situation where an index cannot be updated through this client as the index is aliased, with the client pointing to the alias.
As the `GET /<index>/_settings` request will only ever return the settings for the specified index (through the alias), it would only have one key, so the name of the key would not matter. We can pop the key to get the settings object for the index through the alias.
Signed-off-by: Étienne Beaulé <[email protected]>
* Upgrade syntax with pyupgrade --py38-plus
Signed-off-by: Hugo van Kemenade <[email protected]>
* Convert to f-strings with flynt
Signed-off-by: Hugo van Kemenade <[email protected]>
* Format with Black
Signed-off-by: Hugo van Kemenade <[email protected]>
* Remove redundant mock backport dependency
Signed-off-by: Hugo van Kemenade <[email protected]>
* isort imports
Signed-off-by: Hugo van Kemenade <[email protected]>
* Add changelog entry
Signed-off-by: Hugo van Kemenade <[email protected]>
---------
Signed-off-by: Hugo van Kemenade <[email protected]>
* Don't create universal wheel for Python 3 only
Signed-off-by: Hugo van Kemenade <[email protected]>
* Update Black target version to match min Python supported
Signed-off-by: Hugo van Kemenade <[email protected]>
* Upgrade files using six to Python 3 syntax
Signed-off-by: Hugo van Kemenade <[email protected]>
* Remove redundant six dependency
Signed-off-by: Hugo van Kemenade <[email protected]>
* Format with Black
Signed-off-by: Hugo van Kemenade <[email protected]>
* Add changelog entry
Signed-off-by: Hugo van Kemenade <[email protected]>
---------
Signed-off-by: Hugo van Kemenade <[email protected]>
Updated CHANGELOG.md.
nox formatting applied.
Added new unit test for actions scan function.
Added type hints & nox formatting.
Added fix to async scan function & added matching unit tests for async.
Signed-off-by: Djcarrillo6 <[email protected]>
* fixes: #512 Wrong return type hint in async_scan
Signed-off-by: Bhavani Ravi <[email protected]>
* add: changelog
Signed-off-by: Bhavani Ravi <[email protected]>
---------
Signed-off-by: Bhavani Ravi <[email protected]>