From: Radek Vykydal <rvykydal@xxxxxxxxxx> Concerns repo setting UI. For proxy_username and proxy_pasword repo attributes, using empty strings causes creating of invalid proxy specification string in yum, e.g. http://:@172.16.22.129:8080. --- iw/task_gui.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/iw/task_gui.py b/iw/task_gui.py index 126f8c5..6330b2b 100644 --- a/iw/task_gui.py +++ b/iw/task_gui.py @@ -188,8 +188,8 @@ class RepoEditor: self.proxyCheckbox.set_active(True) self.proxyTable.set_sensitive(True) self.proxyEntry.set_text(self.repo.proxy) - self.usernameEntry.set_text(self.repo.proxy_username) - self.passwordEntry.set_text(self.repo.proxy_password) + self.usernameEntry.set_text(self.repo.proxy_username or '') + self.passwordEntry.set_text(self.repo.proxy_password or '') else: self.proxyCheckbox.set_active(False) self.proxyTable.set_sensitive(False) @@ -238,8 +238,9 @@ class RepoEditor: return False repo.proxy = proxy - repo.proxy_username = self.usernameEntry.get_text() - repo.proxy_password = self.passwordEntry.get_text() + # with empty string yum would create invalid proxy string + repo.proxy_username = self.usernameEntry.get_text() or None + repo.proxy_password = self.passwordEntry.get_text() or None repourl = self.baseurlEntry.get_text() repourl.strip() -- 1.7.0.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list