X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=config%2Fsfa-config-tty;h=7e0c8bdcce95a3c7c37e612c01110273f7c9f43a;hb=f27128bd33db08114f264c4028ae667c962b64c5;hp=5b65de5d264ad22cbc0f304d19dc830c6205b39b;hpb=1505f3a42ea06ef30959e9e54fa7298eb55d83ee;p=sfa.git diff --git a/config/sfa-config-tty b/config/sfa-config-tty index 5b65de5d..7e0c8bdc 100755 --- a/config/sfa-config-tty +++ b/config/sfa-config-tty @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys @@ -28,14 +28,11 @@ usual_variables = [ "SFA_REGISTRY_ROOT_AUTH", "SFA_REGISTRY_HOST", "SFA_AGGREGATE_HOST", - "SFA_SM_HOST", "SFA_DB_HOST", ] flavour_xml_section_hash = { 'pl': 'sfa_plc', - 'openstack': 'sfa_nova', - 'nitos': 'sfa_nitos', 'dummy': 'sfa_dummy', } configuration = { @@ -232,7 +229,8 @@ def reload_service(): def restart_service(): services = ('sfa-db', 'sfa-aggregate', 'sfa-registry') for service in services: - restart = ("systemctl -q is-active {s} && {{ echo restarting {s} ; systemctl restart {s}; }}" + restart = ("systemctl -q is-active {s} && " + "{{ echo restarting {s} ; systemctl restart {s}; }}" .format(s=service)) os.system(restart)