search for: py_quot

Displaying 8 results from an estimated 8 matches for "py_quot".

Did you mean: py&quot
2018 Feb 27
5
[PATCH v2 0/3] v2v: Add -o rhv-upload output mode.
This patch set is still for discussion only. See 3/3 for the current list of problems. However this will upload an image to an oVirt or RHV server, although you must have absolutely the latest snapshot version of 4.2 for it to work. Rich.
2018 Feb 22
0
[PATCH 5/5] v2v: Add -o rhv-upload output mode.
...password = file.read() +password = password.rstrip() + +# Open the connection. +connection = sdk.Connection( + url = %s, + username = %s, + password = password, + debug = %s, + log = logging.getLogger(), + insecure = True, +) +system_service = connection.system_service() +" (py_quote output_password) + (py_quote conn.conn_url) + (py_quote conn.conn_username) + (py_bool conn.conn_debug) + +let python_create_one_disk disk_name disk_format + output_alloc output_storage disk_size = + sprintf " +disks_service = system_service.disks_service() +disk...
2018 Feb 27
0
[PATCH v2 3/3] v2v: Add -o rhv-upload output mode.
...password = file.read() +password = password.rstrip() + +# Open the connection. +connection = sdk.Connection( + url = %s, + username = %s, + password = password, + debug = %s, + log = logging.getLogger(), + insecure = True, +) +system_service = connection.system_service() +" (py_quote output_password) + (py_quote conn.conn_url) + (py_quote conn.conn_username) + (py_bool conn.conn_debug) + +let python_get_storage_domain_id output_storage = + let search_term = sprintf "name=%s" output_storage in + sprintf " +sds_service = system_service.storage_domains_service...
2018 Feb 22
11
[PATCH 0/5] v2v: Add -o rhv-upload output mode.
The first four patches are straightforward. The final patch adds the -o rhv-upload output mode. It is still spooling into a temporary file because I've had some trouble getting streaming conversions working. There are other problems as outlined in the commit message, so this patch is not ready for upstream but is good for discussion. Also I hit this, which I'm assuming for now will be
2018 Feb 22
2
Re: [PATCH 5/5] v2v: Add -o rhv-upload output mode.
...> +# Open the connection. > +connection = sdk.Connection( > + url = %s, > + username = %s, > + password = password, > + debug = %s, > + log = logging.getLogger(), > + insecure = True, > +) > +system_service = connection.system_service() > +" (py_quote output_password) > + (py_quote conn.conn_url) > + (py_quote conn.conn_username) > + (py_bool conn.conn_debug) > + > +let python_create_one_disk disk_name disk_format > + output_alloc output_storage disk_size = > + sprintf " > +disks_servic...
2018 Mar 01
7
[PATCH v3 0/6] v2v: Add -o rhv-upload output mode.
v2 -> v3: - Lots of code cleanups. - Documentation. However this is still spooling the file into a temporary before the upload. It turns out that fixing this is going to require a small change to qemu. Rich.
2018 Feb 27
0
[PATCH v2 2/3] v2v: utils: Add utility functions for running external Python code.
...* quote things. + *) + let filename, chan = Filename.open_temp_file "py" ".py" in + output_string chan code; + close_out chan; + + let cmd = sprintf "%s %s" (quote python) filename in + let lines = external_command cmd in + Unix.unlink filename; + lines + +let py_quote str = + let str = String.replace str "\\" "\\\\" in + let str = String.replace str "'" "\\'" in + "'''" ^ str ^ "'''" + +let py_bool = function true -> "True" | false -> "False"...
2018 Feb 28
1
Re: [PATCH v2 2/3] v2v: utils: Add utility functions for running external Python code.
...uot;py" ".py" in > + output_string chan code; > + close_out chan; > + > + let cmd = sprintf "%s %s" (quote python) filename in quote filename Tomas > + let lines = external_command cmd in > + Unix.unlink filename; > + lines > + > +let py_quote str = > + let str = String.replace str "\\" "\\\\" in > + let str = String.replace str "'" "\\'" in > + "'''" ^ str ^ "'''" > + > +let py_bool = function true -> "True" | fals...