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
The value returned might sometimes be the default one while there is one defined in either persistent or transient :
cluster routing allocation enablewithout parameter should returnnonebut returns the default one :all