Prashanth Pai fbc07d3ad9 Refactor read_metadata() method
This change:
* Simplifies read_metadata() method.
* Validates pickle header before attempting to unpickle.

Change-Id: I08d4187f7f4cc963d095b2cd2bcee3039a7dc858
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2015-10-21 15:46:27 +05:30
..
2015-10-21 15:46:27 +05:30