esctl icon indicating copy to clipboard operation
esctl copied to clipboard

Discrepancy between transient, persistent and default values

Open jeromepin opened this issue 4 years ago • 0 comments

The value returned might sometimes be the default one while there is one defined in either persistent or transient :

(esctl foobar) cluster routing allocation enable all
Changing cluster routing allocation policy (cluster.routing.allocation.enable) to : all
{'acknowledged': True, 'persistent': {}, 'transient': {'cluster': {'routing': {'allocation': {'enable': 'all'}}}}}
(esctl foobar) cluster routing allocation enable --persistent none
Changing cluster routing allocation policy (cluster.routing.allocation.enable) to : none
{'acknowledged': True, 'persistent': {'cluster': {'routing': {'allocation': {'enable': 'none'}}}}, 'transient': {}}
(esctl foobar) cluster routing allocation enable
all
(esctl foobar) cluster routing allocation enable --persistent
none

cluster routing allocation enable without parameter should return none but returns the default one : all

jeromepin avatar Apr 06 '20 08:04 jeromepin