From f4202af9a06de1693c5a77047585aa81aa3477d9 Mon Sep 17 00:00:00 2001 From: Sergey Klyuykov Date: Thu, 20 Jul 2017 17:20:32 +1000 Subject: [PATCH] Fix paramiko connection --- polemarch/static/js/pmHistory.js | 2 +- requirements.txt | 2 +- rpm.mk | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/polemarch/static/js/pmHistory.js b/polemarch/static/js/pmHistory.js index 11ddd939..2e5236b7 100644 --- a/polemarch/static/js/pmHistory.js +++ b/polemarch/static/js/pmHistory.js @@ -421,7 +421,7 @@ pmHistory.loadLines = function(item_id, opt) var def = new $.Deferred(); jQuery.ajax({ - url: "/api/v1/history/"+item_id+"/lines", + url: "/api/v1/history/"+item_id+"/lines/", type: "GET", contentType:'application/json', data: opt, diff --git a/requirements.txt b/requirements.txt index 075a3288..f4d72ee7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ celery<=4.0.3 six sqlalchemy ansible>=2.1, <=2.2.1 -paramiko==2.1.2 +paramiko<=2.2.1 django-docs==0.2.1 # API diff --git a/rpm.mk b/rpm.mk index 72ec0210..f01406cb 100644 --- a/rpm.mk +++ b/rpm.mk @@ -73,7 +73,7 @@ find %{buildroot} -name "RECORD" -exec rm -rf {} \; # Change the virtualenv path to the target installation direcotry. venvctrl-relocate --source=%{venv_dir} --destination=/%{venv_install_dir} # Strip native modules as they contain buildroot paths in their debug information -find %{venv_dir}/lib -type f -name "*.so" | grep -v _cffi_backend | xargs -r strip +# find %{venv_dir}/lib -type f -name "*.so" | grep -v _cffi_backend | xargs -r strip find %{venv_dir}/lib -type f -name "*.c" -print0 | xargs -0 rm -rf # Setup init scripts mkdir -p $$RPM_BUILD_ROOT/etc/systemd/system