Commit 171292b9 authored by Soldatoff's avatar Soldatoff

Поправил работу nginx-redirector-watch

parent ace2b6e2
%define biname nginx-redirector %define biname nginx-redirector
Name: nginx-redirector Name: nginx-redirector
Version: 0.1.5 Version: 0.1.6
Release: alt1 Release: alt1
Summary: CLI-utility for building nginx redirects Summary: CLI-utility for building nginx redirects
......
...@@ -101,7 +101,7 @@ class ConfigReader: ...@@ -101,7 +101,7 @@ class ConfigReader:
for project in data.get("projects"): for project in data.get("projects"):
map_path = project.get("map") map_path = project.get("map")
abs_map_path = get_map_path(map_path, yaml_dir) abs_map_path = map_path
project_prefix = project.get("prefix") project_prefix = project.get("prefix")
return_list.append((abs_map_path, project_prefix)) return_list.append((abs_map_path, project_prefix))
...@@ -128,7 +128,7 @@ class ConfigReader: ...@@ -128,7 +128,7 @@ class ConfigReader:
res_prefix = prefix.split("/")[-1] # Last directory of map_path a project's name res_prefix = prefix.split("/")[-1] # Last directory of map_path a project's name
f = open(abs_map_path, "r") f = open(map_path, "r")
for i, line in enumerate(f): for i, line in enumerate(f):
request_url, redirect_url, option = None, None, [] request_url, redirect_url, option = None, None, []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment