Make wheeltest pprint, much easier to use

This commit is contained in:
Thomas S Hatch 2012-10-29 23:04:15 -06:00
parent 4522d1fb37
commit d8451b9a37

View file

@ -6,6 +6,7 @@ wheel modules
# Import Python libs
import optparse
import pprint
# Import Salt Libs
import salt.config
@ -62,9 +63,9 @@ class Wheeler(object):
'''
Execute the wheel call
'''
print self.wheel.master_call(**self.opts)
return self.wheel.master_call(**self.opts)
if __name__ == '__main__':
wheeler = Wheeler(parse())
wheeler.run()
pprint.pprint(wheeler.run())