search for: parse_username

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

2019 Nov 18
0
[PATCH v2 11/11] rhv-upload: Clean up username and password
...ot;" + Read the password from file. + """ with builtins.open(params['output_password'], 'r') as fp: - password = fp.read() - password = password.rstrip() + data = fp.read() + return data.rstrip() - # Connect to the server. +def parse_username(): + """ + Parse out the username from the output_conn URL. + """ + parsed = urlparse(params['output_conn']) + return parsed.username or "admin@internal" + +def open(readonly): connection = sdk.Connection( url = params[...
2020 Jan 10
7
[v2v PATCH 0/6] Various Python pycodestyle fixes
Fixes the majority of the pycodestyle issues in the Python scripts, and fix the existing test-v2v-python-syntax.sh to use pycodestyle to actually perform style checks. Pino Toscano (6): PEP 8: adapt whitespaces in lines PEP 8: move imports at the top PEP 8: adapt empty lines tests: find all the Python scripts for syntax checks -o rhv-upload: remove unused Python imports Revamp check
2020 Jun 06
1
[PATCH] v2v: fix spelling errors in Python comments
...2v/rhv-upload-plugin.py | 4 ++-- v2v/rhv-upload-vmcheck.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py index d3e6260e..8c11012b 100644 --- a/v2v/rhv-upload-plugin.py +++ b/v2v/rhv-upload-plugin.py @@ -83,7 +83,7 @@ def parse_username(): def failing(func): """ - Decorator marking the handle as failed if any expection is raised in the + Decorator marking the handle as failed if any exception is raised in the decorated function. This is used in close() to cleanup properly after failures....
2010 Apr 28
0
ANNOUNCE: cifs-utils release 4.4 available for download
...git://git.samba.org/cifs-utils.git gitweb: http://git.samba.org/?p=cifs-utils.git;a=summary Detailed changelog: commit b046d4196855294d57bf57a5b31fbfab41125d4b Author: Jeff Layton <jlayton at samba.org> Date: Wed Apr 28 07:13:17 2010 -0400 mount.cifs: fix parsing of password in parse_username Signed-off-by: Jeff Layton <jlayton at samba.org> commit 6c917ebf360b3dbbc4c7ad9af3e106170528aa3c Author: Scott Lovenberg <scott.lovenberg at gmail.com> Date: Sun Apr 25 09:35:13 2010 -0400 mount.cifs: continued cleanup of open_cred_file and zero out buffer The...
2010 May 21
0
ANNOUNCE: cifs-utils release 4.5 available for download
...2010 -0400 mount.cifs: removed magic number for max username in parse_options Replaced max username in parse_options with the sum of its potential parts for "domain/user%password" formatted values. Note that forward slashes still expand to a double back slash in the parse_username function, though. Signed-off-by: Scott Lovenberg <scott.lovenberg at gmail.com> commit e5d3ceb9958437ef50510a578b0274615a37bcf7 Author: Jeff Layton <jlayton at samba.org> Date: Sun May 2 06:32:34 2010 -0400 mount.cifs: strip leading delimiter off of prefixpath optio...
2019 Nov 21
1
[PATCH] rhv-upload: Handle any error in NBD handlers
...rhv-upload-plugin.py index 43fea18b..7ed521f3 100644 --- a/v2v/rhv-upload-plugin.py +++ b/v2v/rhv-upload-plugin.py @@ -17,6 +17,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. import builtins +import functools import json import logging import socket @@ -72,6 +73,22 @@ def parse_username(): parsed = urlparse(params['output_conn']) return parsed.username or "admin@internal" +def failing(func): + """ + Decorator marking the handle as failed if any expection is raised in the + decorated function. This is used in close() to cleanup...
2019 Nov 18
15
[PATCH v2 00/11] rvh-upload: Various fixes and cleanups
This series extract oVirt SDK and imageio code to make it eaiser to follow the code and improve error handing in open() and close(). Tested with virt-v2v master. Changes since v1: - Rebase on merged patches from v1 - Fix regression introduced by "rhv-upload: Fix cleanup after errors" - Remove "rhv-upload: Try to remove disk on timeout" since it cannot succeed - Add more
2019 Nov 17
23
[PATCH 00/18] rvh-upload: Various fixes and cleanups
This series extract oVirt SDK and imageio code to make it eaiser to follow the code and improve error handing in open() and close(). The first small patches can be consider as fixes for downstream. Tested based on libguestfs v1.41.5, since I had trouble building virt-v2v and libguestfs from master. Nir Soffer (18): rhv-upload: Remove unused exception class rhv-upload: Check status more