-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
import sys
"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 = {
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)