Juan Hernandez has uploaded a new change for review. Change subject: cli: Add example of search with quotes ......................................................................
cli: Add example of search with quotes This patch adds to the documentation of the list command an example of how to use quotes when the search text contains spaces. Change-Id: I4ca3f77a33bdec56b4d6630a73e9c3b38a6e7e40 Bug-Url: https://bugzilla.redhat.com/1065945 Signed-off-by: Juan Hernandez <[email protected]> (cherry picked from commit 2f02ed1d2822e6bad236ddf74b3bed12b567348a) --- M src/ovirtcli/command/list.py 1 file changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/38/24638/1 diff --git a/src/ovirtcli/command/list.py b/src/ovirtcli/command/list.py index e0aacf3..c408dc9 100644 --- a/src/ovirtcli/command/list.py +++ b/src/ovirtcli/command/list.py @@ -89,6 +89,13 @@ $ list vms --query "name=myvm*" + - This example lists all virtual machines that have a given description: + + $ list vms --query 'description="The description"' + + Note that the the syntax of the search queries requires double quotes + when the text includes spaces. + - This example list all disks by vm_id in virtual machine 'myvm': $ list disks --vm-identifier myvm @@ -104,7 +111,7 @@ as oVirt dialect is not available on vm disks collection. $ list disks --vm-identifier myvm --kwargs "name=Disk 3" - + == Return values == This command will exit with one of the following statuses. To see the -- To view, visit http://gerrit.ovirt.org/24638 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4ca3f77a33bdec56b4d6630a73e9c3b38a6e7e40 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-cli Gerrit-Branch: cli_3.4 Gerrit-Owner: Juan Hernandez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
