From 81df61525c7cec17e6694759eeb42ecbaf37cc78 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 26 Oct 2007 17:39:09 -0400 Subject: make func-inventory smart enough to know that if a module just returns a string, it doesn't have to pretty print it --- func/overlord/inventory.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'func') diff --git a/func/overlord/inventory.py b/func/overlord/inventory.py index 737050c..8bb5942 100755 --- a/func/overlord/inventory.py +++ b/func/overlord/inventory.py @@ -113,6 +113,10 @@ class FuncInventory(object): The call module supports multiple output return types, the default is pprint. """ + # special case... if the return is a string, just print it straight + if type(data) == str: + return data + if self.options.xmlrpc: return xmlrpclib.dumps((data,"")) -- cgit