Index: trunk/packages/sipb-xen-base/files/usr/sbin/invirt-getconf
===================================================================
--- trunk/packages/sipb-xen-base/files/usr/sbin/invirt-getconf	(revision 788)
+++ trunk/packages/sipb-xen-base/files/usr/sbin/invirt-getconf	(revision 789)
@@ -18,5 +18,5 @@
 
 from invirt.config import load
-from sys import argv, exit, stderr
+from sys import argv, exit, stderr, stdout
 from optparse import OptionParser
 
@@ -51,5 +51,5 @@
         for i, component in enumerate(components):
             progress = '.'.join(components[:i])
-            if type(conf) not in [dict, list]:
+            if type(conf) not in (dict, list):
                 raise invirt_exception(
                         '%s: node has no children (atomic datum)' % progress)
@@ -66,5 +66,5 @@
 
         if opts.ls:
-            if type(conf) not in [dict, list]:
+            if type(conf) not in (dict, list):
                 raise invirt_exception(
                         '%s: node has no children (atomic datum)' % progress)
@@ -76,5 +76,9 @@
                     print k
         else:
-            print conf
+            if type(conf) not in (dict, list):
+                print conf
+            else:
+                import yaml
+                yaml.safe_dump(conf, stdout, default_flow_style=False)
     except invirt_exception, ex:
         print >> stderr, ex
