From fd675cc9ee282f75ce4ec0e07069dc2fb664e020 Mon Sep 17 00:00:00 2001 From: Denis Zheleztsov Date: Fri, 11 Nov 2016 09:49:21 +0300 Subject: [PATCH] Move memcache to recommends --- debian/control | 3 ++- surok/system.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 965383c..63885cf 100644 --- a/debian/control +++ b/debian/control @@ -8,5 +8,6 @@ Vcs-Git: https://github.com/Difrex/surok Package: surok Architecture: all -Depends: python3-jinja2, python3-dnsq, python3-requests, python3-memcache (>= 1.57) +Depends: python3-jinja2, python3-dnsq, python3-requests +Recommends: python3-memcache (>= 1.57) Description: Service discovery for Apache Mesos clusters diff --git a/surok/system.py b/surok/system.py index 8ec9a6a..ccd87cd 100644 --- a/surok/system.py +++ b/surok/system.py @@ -2,7 +2,6 @@ import os import sys import logging import requests -import memcache from .discovery import resolve @@ -101,6 +100,7 @@ def reload_conf(service_conf, app_conf, conf, app_hosts): # Need rewriting ################ if 'memcached' in conf: + import memcache if conf['memcached']['enabled'] is True: # Check old servers mc_hosts = None