diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-10-26 17:39:09 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-10-26 17:39:09 -0400 |
commit | 81df61525c7cec17e6694759eeb42ecbaf37cc78 (patch) | |
tree | 97ae630ca2b2e7c5fb2fcb2fe2de5237ae4c1380 /func | |
parent | 9060cccfbfa77fbc8592f07e4641514d7a740a1f (diff) | |
download | third_party-func-81df61525c7cec17e6694759eeb42ecbaf37cc78.tar.gz third_party-func-81df61525c7cec17e6694759eeb42ecbaf37cc78.tar.xz third_party-func-81df61525c7cec17e6694759eeb42ecbaf37cc78.zip |
make func-inventory smart enough to know that if a module just returns a string, it doesn't have to pretty print it
Diffstat (limited to 'func')
-rwxr-xr-x | func/overlord/inventory.py | 4 |
1 files changed, 4 insertions, 0 deletions
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,"")) |