Handle the result of QueryGroups() correctly
authorDimitris Aragiorgis <dimara@grnet.gr>
Tue, 22 Jan 2013 13:58:32 +0000 (15:58 +0200)
committerMichael Hanselmann <hansmi@google.com>
Wed, 23 Jan 2013 13:25:49 +0000 (14:25 +0100)
commit286d0218018ff472c0e5eb87bd51386027d6cdb1
tree1226ca5b608bb3a619052401b2a3cf1ee4c81202
parent76c364d9e8bb05bf8677d85657ca7267be549572
Handle the result of QueryGroups() correctly

If no group is given for the “gnt-network connect“/“… disconnect”
commands, the client uses the result of “QueryGroups()” which is a list
of lists. Use “itertools.chain()” to handle the return value correctly.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Dimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
(cherry picked from commit af3aea481c3b8528239770edcae75d406a57de81)
lib/client/gnt_network.py