gwu-libraries / clint

Command Line INventory Tool
6 stars 1 forks source link

Fixed fabric task to check available disk space on a server. Fixes #129 #131

Closed darshanrp closed 10 years ago

darshanrp commented 10 years ago

The problem was that the server had 2.0T of free space. The fabric task was check if 2.0 was a digit, which failed assertion. So i've added a helper function for that.

Following is the fabric command to recreate the error on master and then test it on this branch,

fab -f clint-fabutils.py -H storage0.library.gwu.edu:9999 space_available:local=<ANY_BAG_PATH>,remote_drive=/dev/sdd1
dchud commented 10 years ago

Ah! Nice catch. It might be that we can find something more pythonic to avoid parsing text output, but if it works, great. Perhaps we should add some tests. :)