[libvirt] [PATCHv5 2/9] virsh: add support to VIR_TYPED_PARAM_STRING in vshGetTypedParamValue

Hu Tao hutao at cn.fujitsu.com
Tue Dec 20 08:34:57 UTC 2011


---
 tools/virsh.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 3654589..17919e9 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -17086,6 +17086,10 @@ vshGetTypedParamValue(vshControl *ctl, virTypedParameterPtr item)
         ret = virAsprintf(&str, "%s", item->value.b ? _("yes") : _("no"));
         break;
 
+    case VIR_TYPED_PARAM_STRING:
+        ret = virAsprintf(&str, "%s", item->value.s);
+        break;
+
     default:
         vshError(ctl, _("unimplemented block statistics parameter type"));
     }
-- 
1.7.4.4




More information about the libvir-list mailing list