Replace "flags" with "state" in the ds_list output

(cherry picked from commit 45afa00fb425ec1e36887fa237438f25c06dc07b)