search for: json_list

Displaying 20 results from an estimated 20 matches for "json_list".

Did you mean: job_list
2014 Feb 24
2
[PATCH] builder: add a mandatory 'arch' key in index files
...86_64 Minimum/default size: 512.0M Notes: @@ -94,6 +100,7 @@ Phony Ubuntu look-alike used for testing. os-version: phony-windows Full name: Phony Windows +Architecture: x86_64 Minimum/default size: 512.0M Notes: @@ -118,6 +125,7 @@ if [ "$json_list" != "{ { \"os-version\": \"phony-debian\", \"full-name\": \"Phony Debian\", + \"arch\": \"x86_64\", \"size\": 536870912, \"notes\": { \"C\": \"Phony Debian look-...
2014 Jan 16
0
[PATCH 3/3] builder: add a JSON output for --list
...st-virt-builder-list.sh b/builder/test-virt-builder-list.sh index 083c035..c3b791f 100755 --- a/builder/test-virt-builder-list.sh +++ b/builder/test-virt-builder-list.sh @@ -103,3 +103,70 @@ Phony Windows look-alike used for testing." ]; then echo "$long_list" exit 1 fi + +json_list=$(./virt-builder --no-check-signature --no-cache --list --list-format json) + +if [ "$json_list" != "{ + \"version\": 1, + \"sources\": [ + { + \"uri\": \"$VIRT_BUILDER_SOURCE\", + \"fingerprint\": \"F777 4FB1 AD07 4A7E...
2014 Oct 10
0
[PATCH 3/3] builder: use the JSON module
...in + print_string (JSON.string_of_doc ~fmt:JSON.Indented doc); + print_newline () diff --git a/builder/test-virt-builder-list.sh b/builder/test-virt-builder-list.sh index 49daae7..2b6dfad 100755 --- a/builder/test-virt-builder-list.sh +++ b/builder/test-virt-builder-list.sh @@ -116,81 +116,81 @@ json_list=$(virt-builder --no-check-signature --no-cache --list --list-format js if [ "$json_list" != "{ \"version\": 1, \"sources\": [ - { - \"uri\": \"file://$abs_builddir/test-index\" - } + { + \"uri\": \"file://$abs...
2010 Feb 25
2
[PATCH] Enhance vms display
..._in_mb, - :state, :calc_uptime, :id] + :state, :contact, :os, :eol, :comment ] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) - attr_list.insert(3, [:host, :hostname]) + attr_list.insert(2, [:host, :hostname]) end json_list(args[:full_items], attr_list, [:all], args[:find_opts]) end diff --git a/src/app/views/vm/_form.rhtml b/src/app/views/vm/_form.rhtml index adb75d2..13e73db 100644 --- a/src/app/views/vm/_form.rhtml +++ b/src/app/views/vm/_form.rhtml @@ -8,10 +8,14 @@ <div class="form_heading clickab...
2014 Jan 16
5
[PATCH 0/3] Add JSON output for virt-builder
Hi, This small patch serie adds a JSON output for virt-builder. This way it is possible to parse the list of available templates, with no need to parse the unstructured and possibly changing short and long outputs of virt-builder. Pino Toscano (3): builder: small refactor of the list output builder: add --list-format builder: add a JSON output for --list builder/builder.ml
2015 Sep 07
0
[PATCH 4/4] builder: support Simple Streams v1.0 as index metadata
...rd:0.3:powerpc +Full name: cirros-0.3.4-powerpc +Architecture: powerpc +Minimum/default size: 16.4M +Aliases: cirros-0.3.4-powerpc" ]; then + echo "$0: unexpected --list --long output:" + echo "$long_list" + exit 1 +fi + +json_list=$(virt-builder --no-check-signature --no-cache --list --list-format json) + +if [ "$json_list" != "{ + \"version\": 1, + \"sources\": [ + { + \"uri\": \"file://$abs_builddir/test-simplestreams\" + } + ], + \"templates\"...
2018 Aug 20
0
[PATCH 4/4] mltools: JSON: unify JSON_parser type with JSON.json_t.
...+Full name: cirros-0.3.4-i386 +Architecture: i386 +Minimum/default size: 11.9M +Aliases: cirros-0.3.4-i386" ]; then echo "$0: unexpected --list --long output:" echo "$long_list" exit 1 @@ -70,26 +70,6 @@ if [ "$json_list" != "{ } ], \"templates\": [ - { - \"os-version\": \"net.cirros-cloud:standard:0.3:i386\", - \"full-name\": \"cirros-0.3.4-i386\", - \"arch\": \"i386\", - \"size\": 12506112,...
2018 Aug 22
3
[PATCH v2 0/2] mltools: JSON: unify JSON & JSON parser.
v2: - Added back the null value. - Reran the tests. Rich.
2014 Oct 10
4
[PATCH 1/3] Move JSON to mllib
Move the simple OCaml JSON writer to mllib, so that can be enhanced and used also outside v2v. --- mllib/JSON.ml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ mllib/JSON.mli | 26 ++++++++++++++++++++++++++ mllib/Makefile.am | 5 ++++- po/POTFILES-ml | 2 +- v2v/JSON.ml | 53 ----------------------------------------------------- v2v/JSON.mli | 26
2009 May 19
1
re-sending outstanding controller refactoring patches after rebase
I've rebased the patch series to the current next branch and am sending them again.
2009 May 15
0
[PATCH server] use service layer for Network controller.
...ml { - render :layout => 'tabs-and-content' if params[:ajax] - render :layout => 'help-and-content' if params[:nolayout] - } - format.xml { - render :xml => @pool.to_xml(XML_OPTS) - } - end - end - - def networks_json - json_list(Network.find(:all), [:id, :name, :type, [:boot_type, :label]]) - end + def list + svc_list() + respond_to do |format| + format.html { + render :layout => 'tabs-and-content' if params[:ajax] + render :layout => 'help-and-content' if params[:nolayout]...
2015 Sep 07
5
[PATCH 0/4 v3] builder: support for Simple Streams metadata
Hi, this series adds a basic support for Simple Streams v1.0 metadata files. This makes it possible to create a repository .conf files with [cirros] uri=http://download.cirros-cloud.net format=simplestreams to read the latest version of each CirrOS image. Thanks, Pino Toscano (4): builder: add non-int revisions builder: add simple libyajl binding build: expose HAVE_YAJL to automake
2014 Jan 30
2
[PATCH] builder: output translated notes
...(** [setlocale category newlocale] Tiny wrapper to the C [setlocale]. *) diff --git a/builder/test-virt-builder-list.sh b/builder/test-virt-builder-list.sh index c3b791f..634254d 100755 --- a/builder/test-virt-builder-list.sh +++ b/builder/test-virt-builder-list.sh @@ -119,49 +119,63 @@ if [ "$json_list" != "{ \"os-version\": \"phony-debian\", \"full-name\": \"Phony Debian\", \"size\": 536870912, - \"notes\": \"Phony Debian look-alike used for testing.\", + \"notes\": { + \"C\&q...
2014 Feb 25
12
[PATCH 0/8] virt-builder: use .conf files for configuration
Hi, attached there is a serie of patches that completes the work on making virt-builder use .conf files, shipped in XDG directories, to configure all the available sources of indexes used. This also removes the hardcoded default location, replaced now with a configuration file (which may be not used at all). Thanks, Pino Toscano (8): builder: allow "no key" as key in Sigchecker
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...utes.collect do |attr| - if attr.is_a? Array - value = item - attr.each { |attr_item| value = (value.nil? ? nil : value.send(attr_item))} - value - else - item.send(attr) - end - end - item_hash - end - json_hash - end - - # json_list is a helper method used to format data for paginated flexigrid tables - # - # FIXME: what is the intent of this comment? don't define find_opts for array inputs - def json_list(full_items, attributes, arg_list=[], find_opts={}, id_method=:id) - render :json => json_hash(full_items, att...
2018 Aug 20
6
[PATCH 0/4] mltools: JSON unification
An evolution of: https://www.redhat.com/archives/libguestfs/2018-August/msg00155.html
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2014 Sep 16
5
[PATCH 0/3] tests: Introduce test harness for running tests.
These are my thoughts on adding a test harness to run tests instead of using automake. The aim of this exercise is to allow us to run the full test suite on an installed copy of libguestfs. Another aim is to allow us to work around all the limitations and problems of automake. The first patch makes an observation that since the ./run script sets up $PATH to contain all the directories
2015 Aug 04
16
[PATCH v3 01/16] tests: Introduce test harness for running tests.
Since v2: - Add perl tests. - Reworked and fixed the tests for virt-builder. - Some further minor bug fixes.
2015 Aug 06
20
[PATCH v4 00/17] tests: Introduce test harness for running tests.
Since v3: - A large number of fixes, especially for running the tests on installed libguestfs. - Fixed EXTRA_DIST rules throughout. - Extra patch 17/17 which is a tidy-up of the generated XML listing guests. Rich.