diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-08-14 00:22:17 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-15 08:20:06 -0700 |
commit | 83c49777fc92f0673a6ddf735e53d8783b5a6ff5 (patch) | |
tree | 123bd9cdbcdb66422c6ba9cd41d6c058fd98510f /meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch | |
parent | c67f65f4fa05f23bf3b187b51ffdb0c3b9052232 (diff) | |
download | meta-openembedded-83c49777fc92f0673a6ddf735e53d8783b5a6ff5.tar.gz |
python-pykickstart: fix typo
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch')
-rw-r--r-- | meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch b/meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch index 6af4bde08a..e7533f4769 100644 --- a/meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch +++ b/meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From b7070a79432b790dffa82401364e4fd8d906eb2b Mon Sep 17 00:00:00 2001 | 1 | From f05f5fc363e2510f6943532f3e14a6423f6a2cf1 Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Tue, 31 Jul 2018 17:24:47 +0800 | 3 | Date: Tue, 31 Jul 2018 17:24:47 +0800 |
4 | Subject: [PATCH 1/4] support authentication for kickstart | 4 | Subject: [PATCH 1/4] support authentication for kickstart |
@@ -51,7 +51,7 @@ index bf08ac5..aada7aa 100644 | |||
51 | + def __str__(self): | 51 | + def __str__(self): |
52 | + return self.value | 52 | + return self.value |
53 | diff --git a/pykickstart/load.py b/pykickstart/load.py | 53 | diff --git a/pykickstart/load.py b/pykickstart/load.py |
54 | index fb935f2..c6f013f 100644 | 54 | index fb935f2..41a2e9e 100644 |
55 | --- a/pykickstart/load.py | 55 | --- a/pykickstart/load.py |
56 | +++ b/pykickstart/load.py | 56 | +++ b/pykickstart/load.py |
57 | @@ -18,10 +18,13 @@ | 57 | @@ -18,10 +18,13 @@ |
@@ -101,7 +101,7 @@ index fb935f2..c6f013f 100644 | |||
101 | + if user is None or passwd is None: | 101 | + if user is None or passwd is None: |
102 | + log.info("Require Authentication") | 102 | + log.info("Require Authentication") |
103 | + raise KickstartAuthError("Require Authentication.\nAppend 'ksuser=<username> kspasswd=<password>' to boot command") | 103 | + raise KickstartAuthError("Require Authentication.\nAppend 'ksuser=<username> kspasswd=<password>' to boot command") |
104 | + | 104 | |
105 | + reasons = request.headers.get("WWW-Authenticate", "").split() | 105 | + reasons = request.headers.get("WWW-Authenticate", "").split() |
106 | + if reasons: | 106 | + if reasons: |
107 | + auth_type = reasons[0] | 107 | + auth_type = reasons[0] |
@@ -111,9 +111,9 @@ index fb935f2..c6f013f 100644 | |||
111 | + auth=HTTPDigestAuth(user, passwd) | 111 | + auth=HTTPDigestAuth(user, passwd) |
112 | + | 112 | + |
113 | + return auth | 113 | + return auth |
114 | 114 | + | |
115 | +def _load_url(location, user=None, passwd=None): | 115 | +def _load_url(location, user=None, passwd=None): |
116 | + '''Load a location (URL or filename) and return contents as string''' | 116 | + '''Load a location (URL or filename) and return contents as string''' |
117 | + auth = _get_auth(location, user=user, passwd=passwd) | 117 | + auth = _get_auth(location, user=user, passwd=passwd) |
118 | try: | 118 | try: |
119 | - request = requests.get(location, verify=SSL_VERIFY) | 119 | - request = requests.get(location, verify=SSL_VERIFY) |