Skip to content

Commit

Permalink
ovsdb-client: Make "list-dbs" print the list of databases in sorted o…
Browse files Browse the repository at this point in the history
…rder.

This makes the command's behavior more predictable when there is more than
one database.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Ethan Jackson <[email protected]>
  • Loading branch information
blp committed Sep 21, 2012
1 parent 9a61462 commit 5396b42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ovsdb/ovsdb-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ do_list_dbs(struct jsonrpc *rpc, const char *database OVS_UNUSED,

svec_init(&dbs);
fetch_dbs(rpc, &dbs);
svec_sort(&dbs);
SVEC_FOR_EACH (i, db_name, &dbs) {
puts(db_name);
}
Expand Down

0 comments on commit 5396b42

Please sign in to comment.